- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 337 for model (0.15 sec)
-
docs/en/docs/tutorial/response-model.md
### `response_model` Priority If you declare both a return type and a `response_model`, the `response_model` will take priority and be used by FastAPI.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0) -
tests/test_filter_pydantic_sub_model_pv2.py
return name async def get_model_c() -> ModelC: return ModelC(username="test-user", password="test-password") @app.get("/model/{name}", response_model=ModelA) async def get_model_a(name: str, model_c=Depends(get_model_c)): return {"name": name, "description": "model-a-desc", "foo": model_c} client = TestClient(app) return client @needs_pydanticv2
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 6.3K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
# Extra Models Continuing with the previous example, it will be common to have more than one related model. This is especially the case for user models, because: * The **input model** needs to be able to have a password. * The **output model** should not have a password. * The **database model** would probably need to have a hashed password. !!! danger Never store user's plaintext passwords. Always store a "secure hash" that you can then verify.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.7K bytes - Viewed (1) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/Result.java
* <ol> * <li>success - in which case only the model field is set * <li>success with warnings - model field + non-error model problems * <li>error - no model, but diagnostics * <li>error - (partial) model and diagnostics * </ol> * Could encode these variants as subclasses, but kept in one for now * * @param <T> the model type */ public class Result<T> { /**
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 6.8K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java
.orElse(null); } private String getVersion(Model model) { String version = model.getVersion(); if (version == null && model.getParent() != null) { version = model.getParent().getVersion(); } return version; } void put(Path pomFile, Model model) { modelsByPath.put(pomFile, model); modelsByGa
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 4K bytes - Viewed (0) -
tests/test_jsonable_encoder.py
def test_encode_model_with_alias_raises(): with pytest.raises(ValidationError): ModelWithAlias(foo="Bar") def test_encode_model_with_alias(): model = ModelWithAlias(Foo="Bar") assert jsonable_encoder(model) == {"Foo": "Bar"} def test_encode_model_with_default(): model = ModelWithDefault(foo="foo", bar="bar")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 21:56:59 GMT 2024 - 9K bytes - Viewed (0) -
fastapi/openapi/utils.py
all_fields = get_fields_from_routes(list(routes or []) + list(webhooks or [])) model_name_map = get_compat_model_name_map(all_fields) schema_generator = GenerateJsonSchema(ref_template=REF_TEMPLATE) field_mapping, definitions = get_definitions( fields=all_fields, schema_generator=schema_generator, model_name_map=model_name_map, separate_input_output_schemas=separate_input_output_schemas, )
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 21.8K bytes - Viewed (0) -
api/maven-api-model/pom.xml
XML - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Thu Apr 25 08:48:58 GMT 2024 - 3.1K bytes - Viewed (0) -
api/maven-api-plugin/pom.xml
<velocityBasedir>${project.basedir}/../../src/mdo</velocityBasedir> <version>2.0.0</version> <models> <model>src/main/mdo/plugin.mdo</model> </models> <templates> <template>model.vm</template> </templates> <params> <param>packageModelV4=org.apache.maven.api.plugin.descriptor</param>
XML - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Thu Apr 25 08:48:58 GMT 2024 - 4.3K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelNormalizer.java
* * @param model The model whose duplicate elements should be merged, must not be {@code null}. * @param request The model building request that holds further settings, must not be {@code null}. * @param problems The container used to collect problems that were encountered, must not be {@code null}. */
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 2.3K bytes - Viewed (0)