Mark J

Results 21 comments of Mark J

Here's one possible way to do this, example adapted from https://swagger.io/docs/specification/data-models/inheritance-and-polymorphism/ First we create a `discriminator` keyword implementation that during schema construction looks at the adjacent `anyOf` array and creates...

I think it would be great for jschon to implement the built-in formats, and ultimately to support the [format-assertion](https://json-schema.org/draft/2020-12/json-schema-validation.html#name-format-assertion-vocabulary) vocabulary, which requires full validation support for all the formats described...

Currently there's no supported / documented way to do this - I have some ideas about customizing behaviours, messages, etc for predefined keywords, but nothing concrete as yet. However, the...

I'm inclined to concur with Greg Dennis's view in the linked issue - that the keyword itself (which can be inferred from `keywordLocation`) can effectively be taken to be the...

Thanks for raising this issue. I agree with all your points and will look into improving the handling of invalid pointers and other edge cases / ambiguities. The `jsonpatch` module...

As far as I can tell, the only way `$anchor` might affect dynamic ref resolution is if, either: 1. the implementation is faulty; or 2. the schema is invalid against...

Sounds reasonable; I assume you just want to change pointer instantiation in the `jsonpointer` module itself? `self.__class__` will work, or just `cls` in a class method. On raising exception subclasses,...

Option 3 :grin: I've just released 0.11 which should provide a better starting point for your proposed changes. You can now distinguish between construction and evaluation errors. I'd suggest `malformed_exc`...

@handrews I'm reopening this issue, as #104 only covered the exception subclassing part; dynamic instantiation of `[Relative]JSONPointer` must still be implemented.

Cool, no rush. Also, I've not forgotten all your other PRs! From mid-July I will have time to start looking at the more complex and interrelated ones.