Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json-schema definition for parameters #717

Closed
mbroadst opened this issue Jun 20, 2016 · 2 comments
Closed

json-schema definition for parameters #717

mbroadst opened this issue Jun 20, 2016 · 2 comments

Comments

@mbroadst
Copy link

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?

@mbroadst
Copy link
Author

Ah it looks like this was handled over here: #670

apologies for the noise

@ePaul
Copy link
Contributor

ePaul commented Jun 20, 2016

@mbroadst I think it was changed in #654 instead.

Though I'm not sure I understood what you actually wanted. Please note that the "schema" objects API definitions are not exactly the same as JSON schema objects (though there is some overlap, and many objects fulfill both specifications).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants