Skip to content

json-schema definition for parameters #717

Closed
@mbroadst

Description

@mbroadst

It doesn't seem possible to describe the parameters of an endpoint with plain json-schema, which I find curious. One can use json-schema to define a named parameter (parameters: { thing: { in: 'body', schema: { $ref: '....' } }), but not for the entire definition - which seems restrictive. This essentially introduces two acceptable schema formats, and a far less flexible one at that (in the case of the non json-schema format). The only way I can think of doing this is to basically add a top level dummy key (e.g. data) that then uses my json-schema.

So I guess my question is: are there any plans in the future to support parameter definitions in plain json-schema?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions