grape-swagger icon indicating copy to clipboard operation
grape-swagger copied to clipboard

Support "additionalProperties" on Object types

Open bobbytables opened this issue 7 years ago • 3 comments
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)

bobbytables avatar Jul 26 '18 05:07 bobbytables

Bump, any thoughts here?

bobbytables avatar Jan 20 '19 21:01 bobbytables

Opened #738 to add this functionality.

bobbytables avatar Jan 21 '19 16:01 bobbytables

Looks like this was closed by #738 ?

magni- avatar Oct 18 '21 02:10 magni-