ZenWave360/json-schema-ref-parser-jvm

Which JSON Schema versions are supported?

jechterhoff opened this issue · 5 comments

Hi.
Maybe I've missed that in the documentation, but can you tell us which JSON Schema versions (and their keywords) are supported by this tool?
Cheers,
Johannes

... and is de-referencing of JSON Schema anchor-based references supported? Any insights would be appreciated.

Thanks,
Johannes

hi @jechterhoff

it dereferences JSON Schema $ref pointers

Can you provide an example of what you mean by anchor-based references?

Hi @ivangsa,

With anchor-based references I mean a URI that uses a plain name as fragment identifier, with that name occurring as value of a $anchor member in the referenced JSON Schema.

Example:

{
  "$id": "https://example.com/schemas/address",

  "type": "object",
  "properties": {
    "street_address":
      {
        "$anchor": "street_address",
        "type": "string"
      },
    "city": { "type": "string" },
    "state": { "type": "string" }
  },
  "required": ["street_address", "city", "state"]
}

Refererence (in $ref): https://example.com/schemas/address#street_address

nop, those are not supported

Ok, thanks.