style fix

master
Evgeny Poberezkin 2019-02-09 11:40:40 +00:00
parent c5b9516ce2
commit ac2221a4b5
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ function Ajv(opts) {
if (opts.formats) addInitialFormats(this);
addDefaultMetaSchema(this);
if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta);
if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: "boolean"}});
if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: 'boolean'}});
addInitialSchemas(this);
}

View File

@ -1519,7 +1519,7 @@ describe('Ajv Options', function () {
testNotNullable({type: ['number']});
});
it('should respect "nullable" == false with opts.nullable == true', function() {
testNotNullable({
type: 'number',