Skip to content

Commit 6874eaf

Browse files
spacetherfrantuma
authored andcommitted
Changes to getAnyType
1 parent d55bd59 commit 6874eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util/OpenAPIDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4155,7 +4155,7 @@ public Schema getJsonSchema(JsonNode jsonNode, String location, ParseResult resu
41554155
schema.setPatternProperties(patternProperties);
41564156
}
41574157

4158-
Object constValue = getObject("const", node, false, location, result);
4158+
Object constValue = getAnyType("const", node, location, result);
41594159
if (constValue != null) {
41604160
schema.setConst(constValue);
41614161
}

0 commit comments

Comments
 (0)