- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for IDs (0.13 sec)
-
tests/test_serialize_response.py
assert response.json() == {"name": "coerce", "price": 1.0, "owner_ids": None} def test_validlist(): response = client.get("/items/validlist") response.raise_for_status() assert response.json() == [ {"name": "foo", "price": None, "owner_ids": None}, {"name": "bar", "price": 1.0, "owner_ids": None}, {"name": "baz", "price": 2.0, "owner_ids": [1, 2, 3]},
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Aug 03 12:29:07 GMT 2020 - 1.4K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultModelRepositoryHolder.java
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 15:10:38 GMT 2024 - 4.3K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java
private final List<String> ids; private final int hashCode; public CacheKey(List<Artifact> extensionArtifacts) { this.files = new ArrayList<>(extensionArtifacts.size()); this.timestamps = new ArrayList<>(extensionArtifacts.size()); this.sizes = new ArrayList<>(extensionArtifacts.size()); this.ids = new ArrayList<>(extensionArtifacts.size());
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 4.7K bytes - Viewed (0) -
tests/test_serialize_response_model.py
assert response.json() == [ {"aliased_name": "foo", "price": None, "owner_ids": None}, {"aliased_name": "bar", "price": 1.0, "owner_ids": None}, {"aliased_name": "baz", "price": 2.0, "owner_ids": [1, 2, 3]}, ] def test_validdict(): response = client.get("/items/validdict") response.raise_for_status() assert response.json() == {
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 4.2K bytes - Viewed (0) -
tests/test_serialize_response_dataclass.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Aug 26 13:56:47 GMT 2022 - 4.9K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixRequest.java
/** * Gets the list of group ids to scan for the plugin prefix. * * @return The list of group ids to scan for the plugin prefix, never {@code null}. */ List<String> getPluginGroups(); /** * Sets the list of group ids to scan for the plugin prefix. * * @param pluginGroups The list of group ids to scan for the plugin prefix, may be {@code null}.
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Sep 06 08:39:32 GMT 2023 - 3.6K bytes - Viewed (0) -
tests/test_validate_response.py
from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: Optional[float] = None owner_ids: Optional[List[int]] = None @app.get("/items/invalid", response_model=Item) def get_invalid(): return {"name": "invalid", "price": "foo"} @app.get("/items/invalidnone", response_model=Item)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 2K bytes - Viewed (0) -
tests/test_validate_response_dataclass.py
class Item: name: str price: Optional[float] = None owner_ids: Optional[List[int]] = None @app.get("/items/invalid", response_model=Item) def get_invalid(): return {"name": "invalid", "price": "foo"} @app.get("/items/innerinvalid", response_model=Item) def get_innerinvalid(): return {"name": "double invalid", "price": "foo", "owner_ids": ["foo", "bar"]}
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 1.2K bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial002.py
from fastapi.routing import APIRoute app = FastAPI() @app.get("/items/") async def read_items(): return [{"item_id": "Foo"}] def use_route_names_as_operation_ids(app: FastAPI) -> None: """ Simplify operation IDs so that generated API clients have simpler function names. Should be called only after all routes have been added. """ for route in app.routes:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 572 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/score/ScoreBooster.java
}; protected Function<Map<String, Object>, Long> requestHandler = params -> { final FessConfig fessConfig = ComponentUtil.getFessConfig(); final String[] ids = idFinder.apply(params); if (ids.length == 0) { return 0L; } final SearchEngineClient client = ComponentUtil.getSearchEngineClient(); if (bulkRequestBuilder == null) {
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 5K bytes - Viewed (0)