No ability in plugin schema to have a record with dynamic fields #13149
Labels
pending author feedback
Waiting for the issue author to get back to a maintainer with findings, more details, etc...
stale
Is there an existing issue for this?
Kong version (
$ kong version
)Kong 2.8.4
Current Behavior
When defining a Kong plugin's schema, there is no way to allow for a record that does not have it's field attribute defined.
Minimal example:
The field
some_string
is fine, howeverdynamic_record
produces a schema violation error:dynamic_record: field of type 'record' must declare 'fields'
.The inability to explicitly allow for a dynamic record as one of the fields is limiting. I want my users to be able to explicitly specify arbitrary key and value pairs as
dynamic_record
. I want both of thesedynamic_records
to be valid by the schema.Expected Behavior
Should accept an arbitrary record type as a field
Steps To Reproduce
record
and do not define afield
Anything else?
The lack of documentation about fields that are of type
record
is ultimately the most addressable concern here. However, there should be a way to work around this as well.The text was updated successfully, but these errors were encountered: