Skip to content

Commit

Permalink
Fix code example in README.md (#1020)
Browse files Browse the repository at this point in the history
The code example in the README had an error.
  • Loading branch information
tombentley authored Apr 16, 2024
1 parent e59bd12 commit a66647d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ String input = "{\r\n"

Set<ValidationMessage> assertions = schema.validate(input, InputFormat.JSON, executionContext -> {
// By default since Draft 2019-09 the format keyword only generates annotations and not assertions
executionContext.getConfig().setFormatAssertionsEnabled(true);
executionContext.getExecutionConfig().setFormatAssertionsEnabled(true);
});
```

Expand Down

0 comments on commit a66647d

Please sign in to comment.