Skip to content

Bump swagger-models from 1.5.15 to 1.6.0 #12

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

Merged
merged 2 commits into from
Mar 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
<version>1.5.15</version>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import io.swagger.models.Swagger;
import io.swagger.models.parameters.Parameter;
import io.swagger.models.properties.Property;
import io.swagger.models.utils.PropertyModelConverter;

import java.util.*;
import java.util.Map.Entry;
Expand Down Expand Up @@ -132,7 +133,7 @@ private static Property getResponseProperty(Operation operation) {
// temporary workaround for missing response messages
if (responses == null) return null;
Response response = responses.get("200");
return null == response ? null : response.getSchema();
return null == response ? null : new PropertyModelConverter().modelToProperty(response.getResponseSchema());
}

private static List<Endpoint> convert2EndpointList(Map<String, Path> map) {
Expand Down