- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 301 for model (0.21 sec)
-
docs/ru/docs/tutorial/response-model.md
### Приоритет `response_model` Если одновременно указать аннотацию типа для ответа функции и параметр `response_model` - последний будет иметь больший приоритет и FastAPI будет использовать именно его.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 30.5K bytes - Viewed (0) -
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 May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0) -
docs/de/docs/tutorial/response-model.md
### `response_model`-Priorität Wenn sowohl Rückgabetyp als auch `response_model` deklariert sind, hat `response_model` die Priorität und wird von FastAPI bevorzugt verwendet.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:26:58 GMT 2024 - 19.9K bytes - Viewed (0) -
docs/em/docs/tutorial/response-model.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 16K bytes - Viewed (0) -
tests/test_response_model_as_return_annotation.py
) def response_model_model1_annotation_model2_return_invalid_model() -> Item: return Item(name="Foo", price=42.0) @app.get( "/response_model_model1-annotation_model2-return_dict_with_extra_data", response_model=User, ) def response_model_model1_annotation_model2_return_dict_with_extra_data() -> Item:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Aug 14 09:49:57 GMT 2023 - 47.7K 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 May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 21.8K bytes - Viewed (0) -
tests/test_response_by_alias.py
def read_dict(): return {"alias": "Foo"} @app.get("/model", response_model=Model, response_model_by_alias=False) def read_model(): return Model(alias="Foo") @app.get("/list", response_model=List[Model], response_model_by_alias=False) def read_list(): return [{"alias": "Foo"}, {"alias": "Bar"}] @app.get("/by-alias/dict", response_model=Model) def by_alias_dict():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 11.1K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/CIBuildModel.kt
CompileAll { override fun create(model: CIBuildModel, stage: Stage): BaseGradleBuildType { return CompileAll(model, stage) } }, SanityCheck { override fun create(model: CIBuildModel, stage: Stage): BaseGradleBuildType { return SanityCheck(model, stage) } }, BuildDistributions { override fun create(model: CIBuildModel, stage: Stage): BaseGradleBuildType {
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Feb 23 01:54:48 GMT 2024 - 20.9K bytes - Viewed (0) -
tests/test_tuples.py
def test_model_with_tuple_valid(): data = {"items": [["foo", "bar"], ["baz", "whatelse"]]} response = client.post("/model-with-tuple/", json=data) assert response.status_code == 200, response.text assert response.json() == data def test_model_with_tuple_invalid(): data = {"items": [["foo", "bar"], ["baz", "whatelse", "too", "much"]]} response = client.post("/model-with-tuple/", json=data)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 11.8K bytes - Viewed (0) -
maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
@Deprecated public Model interpolate(Model model, Map<String, ?> context, boolean strict) throws ModelInterpolationException { Properties props = new Properties(); props.putAll(context); return interpolate(model, null, new DefaultProjectBuilderConfiguration().setExecutionProperties(props), true); } public Model interpolate(Model model, File projectDir, ProjectBuilderConfiguration config, boolean debugEnabled)
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Sep 06 08:39:32 GMT 2023 - 13.5K bytes - Viewed (0)