- Sort Score
- Num 10 results
- Language All
Results 1211 - 1220 of 4,691 for Done (0.02 seconds)
-
docs/zh-hant/docs/how-to/separate-openapi-schemas.md
<img src="/img/tutorial/separate-openapi-schemas/image02.png"> </div> 這代表該欄位一定會有值,只是有時候值可能是 `None`(在 JSON 中為 `null`)。 因此,使用你 API 的用戶端不必檢查值是否存在,可以假設該欄位一定存在;只是有些情況下它的值會是預設的 `None`。 在 OpenAPI 中,描述這種情況的方式是將該欄位標記為必填,因為它一定存在。 因此,同一個模型的 JSON Schema 會依用於輸入或輸出而不同: - 用於輸入時,`description` 不是必填 - 用於輸出時,`description` 是必填(且可能為 `None`,在 JSON 中為 `null`) ### 文件中的輸出模型 { #model-for-output-in-docs }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 4.1K bytes - Click Count (0) -
docs/zh/docs/how-to/separate-openapi-schemas.md
<img src="/img/tutorial/separate-openapi-schemas/image02.png"> </div> 这意味着它**总会有值**,只是有时该值可能为 `None`(在 JSON 中是 `null`)。 这也意味着,使用你的 API 的客户端无需检查该值是否存在,他们可以**假设该字段总会存在**,只是有时它会是默认值 `None`。 在 OpenAPI 中描述这一点的方式,是把该字段标记为**必填**,因为它总会存在。 因此,一个模型的 JSON Schema 会根据它用于**输入还是输出**而有所不同: - 用于**输入**时,`description` **不是必填** - 用于**输出**时,它是**必填**(并且可能为 `None`,在 JSON 中为 `null`) ### 文档中的输出模型 { #model-for-output-in-docs }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 4.3K bytes - Click Count (0) -
cmd/api-errors.go
ErrInvalidPart: { Code: "InvalidPart", Description: "One or more of the specified parts could not be found. The part may not have been uploaded, or the specified entity tag may not match the part's entity tag.", HTTPStatusCode: http.StatusBadRequest, }, ErrMissingPart: { Code: "InvalidRequest", Description: "You must specify at least one part", HTTPStatusCode: http.StatusBadRequest, },Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 16 07:34:24 GMT 2025 - 93K bytes - Click Count (3) -
tests/test_security_oauth2_password_bearer_optional_description.py
oauth2_scheme = OAuth2PasswordBearer( tokenUrl="/token", description="OAuth2PasswordBearer security scheme", auto_error=False, ) @app.get("/items/") async def read_items(token: str | None = Security(oauth2_scheme)): if token is None: return {"msg": "Create an account first"} return {"token": token} client = TestClient(app) def test_no_token(): response = client.get("/items")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.4K bytes - Click Count (0) -
tests/test_security_http_digest_optional.py
from inline_snapshot import snapshot app = FastAPI() security = HTTPDigest(auto_error=False) @app.get("/users/me") def read_current_user( credentials: HTTPAuthorizationCredentials | None = Security(security), ): if credentials is None: return {"msg": "Create an account first"} return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
} public void testReload() throws ExecutionException { Object one = new Object(); Object two = new Object(); CacheLoader<Object, Object> loader = new CacheLoader<Object, Object>() { @Override public Object load(Object key) { return one; } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 91K bytes - Click Count (0) -
docs/ko/llm-prompt.md
### Target language Translate to Korean (한국어). Language code: ko. ### Grammar and tone - Use polite, instructional Korean (e.g. 합니다/하세요 style). - Keep the tone consistent with the existing Korean FastAPI docs. - Do not translate “You” literally as “당신”. Use “여러분” where appropriate, or omit the subject if it sounds more natural in Korean. ### Headings - Follow existing Korean heading style (short, action-oriented headings like “확인하기”).
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jan 24 21:17:54 GMT 2026 - 1.7K bytes - Click Count (0) -
docs/zh/docs/index.md
app = FastAPI() class Item(BaseModel): name: str price: float is_offer: bool | None = None @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: str | None = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}") def update_item(item_id: int, item: Item):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 20.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterables.java
/** * Determines if the given iterable contains no elements. * * <p>There is no precise {@link Iterator} equivalent to this method, since one can only ask an * iterator whether it has any elements <i>remaining</i> (which one does using {@link * Iterator#hasNext}). * * <p><b>{@code Stream} equivalent:</b> {@code !stream.findAny().isPresent()} *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 43.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 12.1K bytes - Click Count (0)