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
Seems to be divergent implementatins of new URL in Edge and Chrome/Firefox
Validator.prototype.validate = function validate (instance, schema, options, ctx) {
var id = schema.$id || schema.id;
let base = helpers.resolveUrl(options.base,id||''); # THIS LINE FAILS
...
In helpers.resolveUrl the line is
const resolvedUrl = new URL(to, new URL(from, 'resolve://'));
The following statement works in chrome but not Edge (tested in browser console)
new URL('','resolve://')
Fails with error message Failed to construct 'URL': Invalid URL. Seems to be to do with allowed protocols different between browsers.
Tested browsers:
Chrome: 131.0.6778.265
Edge: 131.0.2903.146
The text was updated successfully, but these errors were encountered:
Sorry, switched quickly to ajv as it was breaking some critical deployments and seemed faster to switch implementation. To be honest I would not know where to start!
Seems to be divergent implementatins of
new URL
in Edge and Chrome/FirefoxIn
helpers.resolveUrl
the line isThe following statement works in chrome but not Edge (tested in browser console)
Fails with error message
Failed to construct 'URL': Invalid URL
. Seems to be to do with allowed protocols different between browsers.Tested browsers:
The text was updated successfully, but these errors were encountered: