We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Schema does not require "type" to be present for enums, see also https://json-schema.org/understanding-json-schema/reference/generic.html#enumerated-values.
"type"
The plugin however requires it for all query parameter schemas:
openapi/sphinxcontrib/openapi/openapi30.py
Lines 279 to 282 in 4f78db9
Sample error:
2021-01-12T14:38:38.9415027Z Exception occurred: 2021-01-12T14:38:38.9416063Z File "/__w/1/s/env/lib/python3.8/site-packages/sphinxcontrib/openapi/openapi30.py", line 281, in _httpresource 2021-01-12T14:38:38.9416591Z type=param['schema']['type'], 2021-01-12T14:38:38.9416959Z KeyError: 'type'
Sample parameter:
{ "in": "query", "name": "status", "required": false, "schema": { "enum": [ "PENDING", "TRUSTED", "RETIRED" ] } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
JSON Schema does not require
"type"
to be present for enums, see also https://json-schema.org/understanding-json-schema/reference/generic.html#enumerated-values.The plugin however requires it for all query parameter schemas:
openapi/sphinxcontrib/openapi/openapi30.py
Lines 279 to 282 in 4f78db9
Sample error:
Sample parameter:
The text was updated successfully, but these errors were encountered: