Skip to content

Support "additionalProperties" on Object types #690

Open
@bobbytables

Description

@bobbytables

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions