You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the old renderer (since I cannot use the new one due to #124 and I want to keep API docs splitted based on path) with OpenAPI 3.1 and examples enabled there is a problem due to how examples are rendered and guessed:
If no example is provided in the swagger file one is guessed from _parse_schema, but if there are only readonly properties this method returns an object (_READONLY_PROPERTY) which is not serializable. This results in an unhandled exception (TypeError: Object of type object is not JSON serializable) which is not what is intended.
The text was updated successfully, but these errors were encountered:
When using the old renderer (since I cannot use the new one due to #124 and I want to keep API docs splitted based on path) with OpenAPI 3.1 and examples enabled there is a problem due to how examples are rendered and guessed:
openapi/sphinxcontrib/openapi/openapi31.py
Lines 214 to 236 in e62e298
If no example is provided in the swagger file one is guessed from
_parse_schema
, but if there are only readonly properties this method returns an object (_READONLY_PROPERTY
) which is not serializable. This results in an unhandled exception (TypeError: Object of type object is not JSON serializable
) which is not what is intended.The text was updated successfully, but these errors were encountered: