Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to process references like $ref: 'filename#/' #94

Open
randomswdev opened this issue Mar 4, 2021 · 0 comments
Open

Unable to process references like $ref: 'filename#/' #94

randomswdev opened this issue Mar 4, 2021 · 0 comments

Comments

@randomswdev
Copy link

I want to process a json schema that includes a reference like:

$ref: './filename.json#/'

As far as I understood (and I ask for confirmation) this should be equivalent to the syntax:

$ref: './filename.json#'

where the final "/" is missing. Both of them should refer to the root element in the file "filename.json". But while the library properly process the second refernece, it fails to procvess the first one.

In the first case it think that that the json pointer inside of the file "filename.json" is not empty, and thus attempts to find a keyword that matches what is after the /, that is the empty string. and does not find such an empty keyword.

If my assumption that both references are correct, is the issue in the jsonschema library or in the jsonpointer library that processes "/" as a non empty json pointer? If you provide me some guidance, I can develop a merge request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant