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
There are some cases when the response JSON structure returned by an API endpoint is always the same. I mean, I would like to specify in the API specification that the result is
The best way I found to describe this, is a 1-element enum for each field. It is quite verbose so it would be nice to have a value member describing exact values like this:
This is an issue for the spec, not swagger-editor. We just follow what the spec allows. If you'd like to try and see a change, you can file a ticket on the spec's repo.
That said, considering we're using a subset of JSON Schema, it's very unlikely that we'd deviate from that in the spec.
There are some cases when the response JSON structure returned by an API endpoint is always the same. I mean, I would like to specify in the API specification that the result is
The best way I found to describe this, is a 1-element enum for each field. It is quite verbose so it would be nice to have a
value
member describing exact values like this:It would be even better to define constant responses with complete JSON description, similarly to this one:
The text was updated successfully, but these errors were encountered: