-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Nested definitions not showing on *Response Messages* area #1567
Comments
You mean inline definitions? |
I am new to swagger but I am talking about the column Response Model under the section Response Messages. If I define an array of items like this: "responses": {
"400": {
"description": "Validation error",
"schema": {
"properties": {
"errors": {
"type": "array",
"items": {
"$ref": "#/definitions/DomainCreationError"
}
}
}
} that won't display under the Response Messages section. If I switch to "200" then it will properly display on Response Class (Status 200). And if I use a flat schema, i.e no nested properties, no array, etc it will display fine under Response Messages. I think one easy way to test is just to modify my sample api.json and swap 400 and 200 responses. That should explain the issue. |
Yup, that's an inline definition and a duplicate of #1297 - please follow that issue. |
Cool. Thanks for the follow up! |
I have an API specification where response definitions are nested:
https://gist.githubusercontent.com/yoanisgil/4f682a2fff099f4088a2/raw/55ca4513dba6fb20c5d31f071c32aaedf6bc71ba/api.json
however the response models are not shown in the Response Messages area
Is this a bug or is it just the way that is supposed to work?
The text was updated successfully, but these errors were encountered: