-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api) fix output of records in /plugins/schema
* 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.
- Loading branch information
Showing
2 changed files
with
57 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters