You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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).
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?
The text was updated successfully, but these errors were encountered: