ghandic/jsf

Make "definitions" variable in JSF._parse method

Closed this issue · 3 comments

The latest JSON Schema draft versions recommend using $defs instead of definitions with the note that the actual reference pointer should be extracted from the $ref fragment. I think it will require a change in the _parse method of https://github.com/ghandic/jsf/blob/main/src/jsf/parser.py

After perusing the release notes for draft 2019-09, definitions was renamed to $defs with the caveat that definitions should still be honored for backwards compatibility. This might be a non-issue then if the jsf library currently only supports up to draft 7 (#3).

Viable if we can get #3 fixed