We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a29a3d9 commit 09b194aCopy full SHA for 09b194a
modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/APIResponsesResourceTest.java
@@ -55,7 +55,10 @@ private Schema getResponseSchema(String path) {
55
public void testSchemaAPIResource31(String schema) {
56
Schema responseSchema = getResponseSchema(schema);
57
58
+ String fromGetType = responseSchema.getType() == null ? "null" : responseSchema.getType();
59
+ String fromGetTypes = responseSchema.getTypes() == null ? "null" : responseSchema.getTypes().iterator().next().toString();
60
+
61
// Value of field "type" must equal value of field "types"
- assertEquals(responseSchema.getType(), responseSchema.getTypes().iterator().next());
62
+ assertEquals(fromGetType, fromGetTypes);
63
}
64
0 commit comments