Replies: 3 comments 8 replies
-
|
Hi @alcohol it seems like a legit case. I’ve been working on the validations based on the JSON schema test cases. So it would be very likely that there was no such test case and that is how this could have been overlooked. If you could make a PR I’m available to help with the review and merging/releasing. |
Beta Was this translation helpful? Give feedback.
-
|
@alcohol im trying to see how to help you out but it is a bit unclear to me. Is it you’re questioning the root cause, the change that are needed or if we should improve this at all? I think the best way forward is to see if we can make the tests green. Which might be a tweak to the current regex or a replacement all together. I believe the current regex came into place to pass the JSON schema tests. |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for the numerous replies. It was a bit like rubber 🦆ing. I think my PR contains the most sensible approach to fixing this now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the URI validator does not support
file:///pathfor a local path. It does seem to supportfile://path; but this is technically wrong (though a common mistake): https://en.wikipedia.org/wiki/File_URI_schemeSee also https://en.wikipedia.org/wiki/File_URI_scheme#Number_of_slash_characters
Since this is a validation library and not just an interpreter, would it not be preferable to enforce the specification?
Beta Was this translation helpful? Give feedback.
All reactions