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
{{ message }}
This repository was archived by the owner on Mar 18, 2019. It is now read-only.
When attempting to document an API which uses header based versioning, I'm running into issues with errors like the following:
{ "detail": "Could not satisfy the request Accept header." }When attempting to use "try it out" in the swagger UI.
After much debugging, I determined this is the source of the issue:
https://github.com/core-api/python-openapi-codec/blob/master/openapi_codec/encode.py#L78
Consumes is populated, but
producesis NOT populated. We managed to get a "workaround" in play by manually patching it:Is there a plan in the roadmap to implement this aspect of the swagger spec?