grape-swagger
grape-swagger copied to clipboard
Support "additionalProperties" on Object types
trafficstars
I'm not sure if OAS2 has this, I'd guess it does, but right now I'm looking for a way to support "freeform" objects being passed in.
For example, I have the option to pass in labels for my API:
# request payload
{ "labels": { "this":"is freeform", "no":"structure"}}
The labels key can have any type of keys/values passed into it. I'm looking for a way to document this using this gem. You can see this documented on Swagger here: https://swagger.io/docs/specification/data-models/data-types/#object (granted this is OAS3)
Bump, any thoughts here?
Opened #738 to add this functionality.
Looks like this was closed by #738 ?