Skip to content

Conversation

Cyri-L
Copy link

@Cyri-L Cyri-L commented Mar 2, 2016

before:

var NothingSchema = module.exports = Schema.patterns.NothingSchema = Schema.extend({
    errors: function (instance) {
        return false
    },

after:

var NothingSchema = module.exports = Schema.patterns.NothingSchema = Schema.extend({
    errors: function (instance) {
        if(instance != null)
            return "this key is not allowed in strict mode";
        return false
    },

@YouriT
Copy link

YouriT commented Dec 19, 2016

ping @molnarg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants