-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly fill plugins with arbitrary map fields
Kong plugin schemas support different type of fields, including maps. Moreover, these can either be arbitrary maps, or maps with their own subschema. go-kong already supports well the second case, but it falls short with arbitrary maps. An example of arbitrary map field is the `custom_fields_by_lua` from the `http-log` plugin, which is defined as follows: ``` { "custom_fields_by_lua": { "keys": { "len_min": 1, "type": "string" }, "type": "map", "values": { "len_min": 1, "type": "string" } } } ``` This commit makes sure that go-kong is able to correctly handle such schemas as well.
- Loading branch information
Showing
3 changed files
with
56 additions
and
2 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
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