-
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
public/swagger/swagger-ui.js does not do a null check #1274
Comments
How are you getting |
I am using Swagger in a Play 2.3.7 project and had annotations over one of the REST APIs in my codebase.Inspite of the annotations being present,the swagger URL used to load with definitions being null. |
more like I can try to recreate this. |
@kktiwa - can you share your Swagger definition to help us investigate it? |
Closing due to lack of activity. Please reopen if needed. |
There should be null check for 'definitions' without which the Swagger UI fails to load.
Line number 3468
Existing Code:
if (definitions[ref]) {
return new Model(ref, definitions[ref], this.models);
Code changed as fix:
if (definitions && definitions[ref]) {
return new Model(ref, definitions[ref], this.models, this.parent.modelPropertyMacro);
The text was updated successfully, but these errors were encountered: