File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,12 @@ public void testIssue_1292() {
76
76
SwaggerParseResult parseResult = openApiParser .readLocation ("issue-1292/petstore.yml" , null , options );
77
77
78
78
OpenAPI openAPI = parseResult .getOpenAPI ();
79
- Yaml .prettyPrint (openAPI );
80
- //assertNotNull(openAPI.getComponents().getSchemas().get("val_Members_val_member"));
81
- //assertNotNull(openAPI.getComponents().getSchemas().get("val_MemberProducts_val_product"));
82
79
80
+ assertNotNull (openAPI .getPaths ().get ("/pets" ).getGet ().getResponses ().get ("200" ).getContent ().get ("application/json" ).getSchema ().get$ref (), "#/components/schemas/Pets" );
81
+ assertNotNull (openAPI .getPaths ().get ("/pets" ).getGet ().getResponses ().getDefault ().getContent ().get ("application/json" ).getSchema ().get$ref (), "#/components/schemas/Error" );
82
+ assertNotNull (openAPI .getComponents ().getSchemas ().get ("Pet" ));
83
+ assertNotNull (openAPI .getComponents ().getSchemas ().get ("Pets" ));
84
+ assertNotNull (openAPI .getComponents ().getSchemas ().get ("Error" ));
83
85
}
84
86
85
87
@ Test
You can’t perform that action at this time.
0 commit comments