- Sort Score
- Num 10 results
- Language All
Results 1 - 9 of 9 for contentMediaType (0.26 seconds)
-
tests/test_request_params/test_file/test_optional_list.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 21 13:01:31 GMT 2026 - 10.8K bytes - Click Count (0) -
tests/test_request_params/test_file/test_optional.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 21 13:01:31 GMT 2026 - 9.8K bytes - Click Count (0) -
tests/test_request_params/test_file/test_list.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 21 13:01:31 GMT 2026 - 11.6K bytes - Click Count (0) -
tests/test_request_params/test_file/test_required.py
assert app.openapi()["components"]["schemas"][body_model_name] == { "properties": { "p": { "title": "P", "type": "string", "contentMediaType": "application/octet-stream", }, }, "required": ["p"], "title": body_model_name, "type": "object", } @pytest.mark.parametrize( "path", [Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 21 13:01:31 GMT 2026 - 11.1K bytes - Click Count (0) -
fastapi/datastructures.py
@classmethod def __get_pydantic_json_schema__( cls, core_schema: Mapping[str, Any], handler: GetJsonSchemaHandler ) -> dict[str, Any]: return {"type": "string", "contentMediaType": "application/octet-stream"} @classmethod def __get_pydantic_core_schema__( cls, source: type[Any], handler: Callable[[Any], Mapping[str, Any]] ) -> Mapping[str, Any]:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 5.2K bytes - Click Count (0) -
fastapi/openapi/utils.py
) item_schema["required"] = ["data"] item_schema["properties"]["data"] = { "type": "string", "contentMediaType": "application/json", "contentSchema": content_schema, } sse_content["itemSchema"] = item_schemaCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 25.6K bytes - Click Count (0) -
fastapi/_compat/v2.py
# and dropping support for any version of Pydantic before that one (so, in a very long time) def bytes_schema(self, schema: CoreSchema) -> JsonSchemaValue: json_schema = {"type": "string", "contentMediaType": "application/octet-stream"} bytes_mode = ( self._config.ser_json_bytes if self.mode == "serialization" else self._config.val_json_bytes )
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 16.7K bytes - Click Count (0) -
fastapi/openapi/models.py
# A Vocabulary for the Contents of String-Encoded Data contentEncoding: str | None = None contentMediaType: str | None = None contentSchema: Optional["SchemaOrBool"] = None # Ref: JSON Schema Validation 2020-12: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-a-vocabulary-for-basic-metaCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 14.2K bytes - Click Count (0) -
docs/en/docs/release-notes.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Apr 03 12:07:04 GMT 2026 - 631K bytes - Click Count (0)