-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
URI format to restrictive #60
Comments
Running into a situation where internet archive URLs are not allowed. The depreciated URL format seems to be more flexible. |
Running URLs through |
URI should allow non-ASCII characters. For time being our workaround is to creates a custom URI validator that uses the built-in URL constructor, which is more lenient with non-ASCII characters: ajv.addFormat('uri', {
validate: (str: string) => {
try {
new URL(str)
return true
} catch {
return false
}
},
}) |
Check out canParse https://developer.mozilla.org/en-US/docs/Web/API/URL/canParse_static |
URIs should be allowed to have characters outside of a-zA-z, e.g.
ñ
and other non-ascii characters.The text was updated successfully, but these errors were encountered: