jsonschema icon indicating copy to clipboard operation
jsonschema copied to clipboard

Deprecate the `id_of` argument to `validators.create` and the `ID_OF` attribute on `Validator`s

Open Julian opened this issue 2 years ago • 0 comments

These two are redundant with the now-anyways-needed Specification objects from referencing.

Either as part of this or some time in the future there will be a way of specifying which Specification should be associated with a new Validator, but regardless, these two objects are insufficient already today for encapsulating all the information that's needed to know how to deal with schemas for a dialect.

(#1061 is somewhat tangentially related to this).

Also somewhat related is expanding support for dialect <-> vocabulary interaction. The specification is still quite immature here and may change in the future, so there's a slight worry in creating an API that matches it too closely, but this ticket may benefit from "abandoning" jsonschema.validators.* in favor of new APIs that create dialects...

Julian avatar Apr 24 '23 20:04 Julian