Skip to content

Commit 62ed35a

Browse files
authored
Fix 2012-12 typo (#1008)
The comment said that Draft 2012-12 would be used if not stated explicitly in the schema data. This should be Draft 2020-12 instead.
1 parent fbf11c3 commit 62ed35a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ The following example demonstrates how inputs are validated against a schema. It
246246
* Using the schema to validate the data along with setting any execution specific configuration like for instance the locale or whether format assertions are enabled.
247247

248248
```java
249-
// This creates a schema factory that will use Draft 2012-12 as the default if $schema is not specified
249+
// This creates a schema factory that will use Draft 2020-12 as the default if $schema is not specified
250250
// in the schema data. If $schema is specified in the schema data then that schema dialect will be used
251251
// instead and this version is ignored.
252252
JsonSchemaFactory jsonSchemaFactory = JsonSchemaFactory.getInstance(VersionFlag.V202012, builder ->

0 commit comments

Comments
 (0)