Skip to content

Validating an instance with an unknown $schema should error #460

@Julian

Description

@Julian

In validator_for, and transitively in validate, providing an instance whose $schema isn't one of the known metaschemas should error, not use the latest supported version.

It looks like that was my intention originally, judging by the docstring, but the code and tests use the default in all cases.

This will unfortunately not be changeable immediately, it'll need a deprecation period first, so step one is to do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething doesn't work the way it should.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions