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
{{ message }}
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.
ok_myres contains schemas and examples, common_400 only contains a description like that:
"common_400": {
"description": "Bad request. Invalid request body or parameters."
},
It works with swagger-jsdoc and swagger-editor, but I have nothing displayed in the angular-swagger-ui directive.
To make it work, it was necessary to add this code :
if (response['$ref']) {
response = swaggerModel.resolveReference(swagger, response);
}
Hello and thanks for the project !
I have a swagger specification with direct references in the response part.
For example :
ok_myres contains schemas and examples, common_400 only contains a description like that:
It works with swagger-jsdoc and swagger-editor, but I have nothing displayed in the angular-swagger-ui directive.
To make it work, it was necessary to add this code :
here in your code for the "ok_myres" reference: https://github.com/Orange-OpenSource/angular-swagger-ui/blob/master/src/scripts/swagger-parser.js#L227
and for the "common_400" reference, this code :
operation.responses[code] = response;
here in your code : https://github.com/Orange-OpenSource/angular-swagger-ui/blob/master/src/scripts/swagger-parser.js#L251
Is it normal ? Do I miss something ? Thanks.
The text was updated successfully, but these errors were encountered: