-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Plugin schema inconsistentcy for request-transformer #4137
Milestone
Comments
There is another bug that I ran into, I'm not opening up a separate issue, if it's better to do so, let me know.
The empty |
hishamhm
added a commit
that referenced
this issue
Jan 7, 2019
* Ensure that plugin schemas return sub-fields of nested records in the same format as the toplevel `fields` entry (i.e., as an array of single-fields objects, so that the field order can be retrieved). * Ensure `fields` in `/plugins/schema` always returns a JSON array, even when it is empty (as in the prometheus plugin). This produces an incompatible output from that of 1.0.0, but the one in 1.0.0 is arguably broken, so this produces the intended result. Fixes #4137.
thibaultcha
pushed a commit
that referenced
this issue
Jan 7, 2019
* Ensure that plugin schemas return sub-fields of nested records in the same format as the toplevel `fields` entry (i.e., as an array of single-fields objects, so that the field order can be retrieved). * Ensure `fields` in `/plugins/schema/:plugin` always returns a JSON array, even when it is empty (as in the prometheus plugin). This produces an incompatible output from that of 1.0.0, but the one in 1.0.0 is arguably broken, so this produces the intended result. Fix #4137 From #4162
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Plugin schema for request transformer contains fields in a nested object as opposed to an array.
Steps To Reproduce
The
fields
property of schema of an object should be an array and not an object.Also, as can be seen, the fields are again nested into
1
,2
,3
, and are also present in the fields object itself, which seems ambiguous.Additional Details & Logs
$ kong version
) 1.0.0$ kong start --vv
)<KONG_PREFIX>/logs/error.log
) noneThe text was updated successfully, but these errors were encountered: