style fix
parent
c5b9516ce2
commit
ac2221a4b5
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -1519,7 +1519,7 @@ describe('Ajv Options', function () {
|
|||
|
||||
testNotNullable({type: ['number']});
|
||||
});
|
||||
|
||||
|
||||
it('should respect "nullable" == false with opts.nullable == true', function() {
|
||||
testNotNullable({
|
||||
type: 'number',
|
||||
|
|
Loading…
Reference in New Issue