You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like since the # sign is a reserved character in resolving $ref, the following path cannot be used as a value to $ref: ../path/to/Some#Directory/schema.json. The following error will be shown: Unable to load schema from '..path/to/Some': ENOENT: no such file or directory, open .
Is there a way to use a path that has a pound sign in this case? How can I escape the pound sign in the path?
The text was updated successfully, but these errors were encountered:
You would need to percent encode the hash/pound sign, as JSON Schema references are URIs.
If some code choose to treat it as a file path, that's allowed, but not defined in the JSON Schema specification.
It seems like since the
#
sign is a reserved character in resolving$ref
, the following path cannot be used as a value to$ref
:../path/to/Some#Directory/schema.json
. The following error will be shown:Unable to load schema from '..path/to/Some': ENOENT: no such file or directory, open
.Is there a way to use a path that has a pound sign in this case? How can I escape the pound sign in the path?
The text was updated successfully, but these errors were encountered: