-
-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When the Open API specification contains context with text/json or application/*+json these are not recognized as valid types.
To Reproduce
Steps to reproduce the behavior:
- Load a api specification containing any of these types in the request body content:
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/..."
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/..."
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/..."
}
}
}
}
- Pass this file to the openapi parser
- See error
Expected behavior
These types should be valid tpes and the specification file should be validated.
System details (please complete the following information):
- Windows 11
- OpenAPI / Swagger version OpenAPI
- Python version 3.9
Additional context
Removing these entries from the file allowed the validaation and loading of the ile into python.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working