New issue
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
feat(proxy): error templates customization #10374
Conversation
312f7a2
to
e30d4ce
Compare
e30d4ce
to
f751f85
Compare
63066ad
to
489f289
Compare
489f289
to
99b48cb
Compare
84d2544
to
28f236c
Compare
Allow customizing error templates via kong.configuration parameters
efa79f4
to
6638e21
Compare
honor Accept header values based on their q-values weights
6638e21
to
ea1828f
Compare
error_template_html = { typ = "string" }, | ||
error_template_json = { typ = "string" }, | ||
error_template_xml = { typ = "string" }, | ||
error_template_plain = { typ = "string" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hanshuebner
What data gets passed to these templates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@esatterwhite the templates are rendered by passing them the error message as a string, see here for example. We will provide proper documentation before this is released.
* feat(proxy): error templates customization Allow customizing error templates via kong.configuration parameters * tests(pdk): initialize kong global to fix failing tests * chore(*): changelog * fix(proxy): honor Accept values weights honor Accept header values based on their q-values weights
Summary
Allow customizing error templates via kong.configuration parameters
Checklist
Full changelog
Issue reference
Fix #7093
KAG-723
KAG-751