Skip to content

Commit a66647d

Browse files
authored
Fix code example in README.md (#1020)
The code example in the README had an error.
1 parent e59bd12 commit a66647d

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
@@ -274,7 +274,7 @@ String input = "{\r\n"
274274

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

0 commit comments

Comments
 (0)