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
Or at least allow overriding of this behavior. I'd like to use this on the client and server, but as written it doesn't work with browserify, due to the behavior of loading schema validators dynamically:
In lib/suites/draft-04/index.js, line 122:
// test all applicable schema properties
var props = getApplicableTests(config);
for (var index = 0; index < props.length; ++index) {
var prop = props[index];
var fn = require('./keywords/' + prop + '.js');
errors = errors.concat(fn(config));
}
Browserify can't resolve these because they are evaluated at run-time. Would it be possible to add a configuration option to override this and support your own (static) requires implementation that would work with frontend delivery tools like browserify better?
I can submit a PR if this is something that would be accepted.
The text was updated successfully, but these errors were encountered:
Or at least allow overriding of this behavior. I'd like to use this on the client and server, but as written it doesn't work with browserify, due to the behavior of loading schema validators dynamically:
In
lib/suites/draft-04/index.js
, line 122:Browserify can't resolve these because they are evaluated at run-time. Would it be possible to add a configuration option to override this and support your own (static) requires implementation that would work with frontend delivery tools like browserify better?
I can submit a PR if this is something that would be accepted.
The text was updated successfully, but these errors were encountered: