Closed stefanklug closed 4 months ago
Hey! Thanks for the kind words.
Yes no current version of JSON Schema supports relative pointers anywhere other than in the format keyword.
More specifically the PHP page you linked seems simply incorrect under the spec.
Oh bad luck, so this is actually no bug and I have to put everything under $defs. Correct?
It doesn't have to go in $defs
, you could also use $anchor
s but yeah there's no such thing as relative referencing right now.
Thanks for your quick help :smile:
Hi all,
first thanks for this great module. I'm pretty new to json schema, so bear with me if I got something wrong. I try to use a relative pointer. According to https://opis.io/json-schema/2.x/pointers.html#relative-pointers this should be a valid schema definition, but I get a jsonschema.exceptions._WrappedReferencingError.
My failing testcase is:
This was tested with version 4.22.0
Is this behavior expected?
Kind regards, Stefan