Skip to content

Commit

Permalink
add missing 3.1 fields
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Jun 26, 2023
1 parent d0b2935 commit da4d474
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public class OpenAPIDeserializer {
"default", "discriminator", "readOnly", "writeOnly", "xml", "externalDocs", "example", "deprecated",
"const", "examples", "$id", "$comment", "if", "then", "else", "unevaluatedProperties","unevaluatedItems", "prefixItems",
"contains","contentEncoding","contentMediaType","$anchor","$schema","contentSchema","propertyNames",
"dependentSchemas","dependentRequired","minContains","maxContains","patternProperties"));
"dependentSchemas","dependentRequired","minContains","maxContains","patternProperties", "$vocabulary", "$dynamicAnchor"));
protected static Set<String> EXAMPLE_KEYS_31 = new LinkedHashSet<>(Arrays.asList("$ref", "summary", "description",
"value", "externalValue"));
protected static Set<String> HEADER_KEYS_31 = new LinkedHashSet<>(Arrays.asList("$ref", "name", "in", "description",
Expand Down Expand Up @@ -4180,6 +4180,16 @@ public Schema getJsonSchema(JsonNode jsonNode, String location, ParseResult resu
schema.set$anchor(value);
}

value = getString("$vocabulary", node, false, location, result);
if (value != null) {
schema.set$vocabulary(value);
}

value = getString("$dynamicAnchor", node, false, location, result);
if (value != null) {
schema.set$dynamicAnchor(value);
}

value = getString("$id", node, false, location, result);
if (value != null) {
schema.set$id(value);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
<swagger-parser-v2-version>1.0.67</swagger-parser-v2-version>
<commons-io-version>2.11.0</commons-io-version>
<slf4j-version>1.7.36</slf4j-version>
<swagger-core-version>2.2.10</swagger-core-version>
<swagger-core-version>2.2.14</swagger-core-version>
<swagger-core-v2-version>1.6.11</swagger-core-v2-version>
<junit-version>4.13.2</junit-version>
<testng-version>7.7.1</testng-version>
Expand Down

0 comments on commit da4d474

Please sign in to comment.