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
hug.defaults.output_format
I'm setting
hug.defaults.output_format = hug.output_format.accept( {'application/json': hug.output_format.json, 'text/yaml': hug_yaml.output_format.yaml, 'application/x-yaml': hug_yaml.output_format.yaml}, default=hug_yaml.output_format.yaml)
All my API endpoints now return YAML by default. The output format for responses also correctly changes according to the Accept: header.
Accept:
However, the API description included in 404 responses is still always JSON, no matter whether I omit or include an Accept: header.
The text was updated successfully, but these errors were encountered:
Add test case for issue #753, ability to change default output format…
2d2de3d
… for 404 page
This is fixed in Release 2.4.6: https://github.com/timothycrosley/hug/releases/tag/2.4.6
Thanks!
~Timothy
Sorry, something went wrong.
No branches or pull requests
I'm setting
All my API endpoints now return YAML by default. The output format for responses also correctly changes according to the
Accept:
header.However, the API description included in 404 responses is still always JSON, no matter whether I omit or include an
Accept:
header.The text was updated successfully, but these errors were encountered: