Repository navigation
MediaType.itemSchema is invalid in OpenAPI 3.1 #15328
First Check
Commit to Help
Example Codec.f. https://fastapi.tiangolo.com/tutorial/stream-json-lines/#__tabbed_3_1DescriptionThe resulting dd is invalid as itemSchema is not a valid property on OpenAPI 3.1 MediaType openapi: 3.1.0
paths:
/jsonl:
get:
description: https://fastapi.tiangolo.com/tutorial/stream-json-lines/#use-cases
operationId: jsonl
responses:
'200':
content:
application/jsonl:
itemSchema:
$ref: '#/components/schemas/Item'
description: Successful Response
summary: JsonlOperating SystemLinux Operating System DetailsNo response FastAPI Version0.135.3 Pydantic Version2.13.0b3 Python VersionPython 3.14.4 Additional ContextNo response |
Answered by
YuriiMotov
Apr 13, 2026
Replies: 1 comment 1 reply
|
Thanks for reporting! We are aware of this. We are planning to update OpenAPI schema version to |
1 reply
Answer selected by
commonism
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for reporting!
We are aware of this. We are planning to update OpenAPI schema version to
3.2, but there are several things to be done before this. So, we will fix this at some point.If it causes problems for you, as a workaround you can use the approach described in docs (https://fastapi.tiangolo.com/how-to/extending-openapi/) to modify the schema and pass
openapi_version="3.2.0"toget_openapi