Skip to content

Disabling format assertions for draft-07 doesn't seem to work #1144

@michaelmior

Description

@michaelmior

I'm trying to use a similar example to the one given in the README to force assertions to be disabled but when I execute this, I still get validation errors referring to the format. This also happens if I set the same option to false when building the config for the schema.

Set<ValidationMessage> = schema.validate(input, OutputFormat.DEFAULT, executionContext -> {
    // By default since Draft 07 the format keyword generates assertions
    executionContext.getExecutionConfig().setFormatAssertionsEnabled(false);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions