-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Relative references using $def
are being URL encoded
#356
Comments
There was the same issue 262 which was closed in March. However, This issue still exists in the latest version |
I encountered this issue with v11.6.4. Just did a quick test with 11.7 and it makes no difference. |
It also seems like the Code dealing with "definitions" Especially: json-schema-ref-parser/lib/bundle.ts Line 77 in 27abe40
No matching code for "defs" However, not really related to the encoding of |
We are using a
$defs
section in our schemas. Schemas within the$defs
section are referenced via local file references, and these schemas can themselves have cross references to other files. The ref parser is correctly injecting a$defs
cross-reference but replacing the$defs
with%24defs
(i.e. it is applying URL encoding). I don’t think this behaviour is correct: while$
is a reserved character in the URIs RFC, it is designated as a sub-delimiterFor example in the parent file:
And the
myschema.json
file:Flattening results in:
The text was updated successfully, but these errors were encountered: