forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
18
electron/node_modules/ajv-keywords/keywords/allRequired.js
generated
vendored
Normal file
18
electron/node_modules/ajv-keywords/keywords/allRequired.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = function defFunc(ajv) {
|
||||
defFunc.definition = {
|
||||
type: 'object',
|
||||
macro: function (schema, parentSchema) {
|
||||
if (!schema) return true;
|
||||
var properties = Object.keys(parentSchema.properties);
|
||||
if (properties.length == 0) return true;
|
||||
return {required: properties};
|
||||
},
|
||||
metaSchema: {type: 'boolean'},
|
||||
dependencies: ['properties']
|
||||
};
|
||||
|
||||
ajv.addKeyword('allRequired', defFunc.definition);
|
||||
return ajv;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue