/home/techb158/balavpn.abdallabala.com/node_modules/ajv/lib/dot
NameSizeModeActions
allOf.jst6090666editdlrm
anyOf.jst9210666editdlrm
coerce.def19790666editdlrm
comment.jst3220666editdlrm
const.jst2800666editdlrm
contains.jst11880666editdlrm
custom.jst49450666editdlrm
defaults.def12850666editdlrm
definitions.def40220666editdlrm
dependencies.jst18680666editdlrm
enum.jst5520666editdlrm
errors.def82820666editdlrm
format.jst31360666editdlrm
if.jst16180666editdlrm
items.jst26100666editdlrm
missing.def11940666editdlrm
multipleOf.jst6440666editdlrm
not.jst8610666editdlrm
oneOf.jst11500666editdlrm
pattern.jst5760666editdlrm
properties.jst77250666editdlrm
propertyNames.jst12840666editdlrm
ref.jst24540666editdlrm
required.jst28680666editdlrm
uniqueItems.jst16960666editdlrm
validate.jst77170666editdlrm
_limit.jst39320666editdlrm
_limitItems.jst3530666editdlrm
_limitLength.jst3580666editdlrm
_limitProperties.jst3760666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/ajv/lib/dot/required.jst (2868B)
{{# def.definitions }} {{# def.errors }} {{# def.missing }} {{# def.setupKeyword }} {{# def.$data }} {{ var $vSchema = 'schema' + $lvl; }} {{## def.setupLoop: {{? !$isData }} var {{=$vSchema}} = validate.schema{{=$schemaPath}}; {{?}} {{ var $i = 'i' + $lvl , $propertyPath = 'schema' + $lvl + '[' + $i + ']' , $missingProperty = '\' + ' + $propertyPath + ' + \''; if (it.opts._errorDataPathProperty) { it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); } }} #}} {{## def.isRequiredOwnProperty: Object.prototype.hasOwnProperty.call({{=$data}}, {{=$vSchema}}[{{=$i}}]) #}} {{? !$isData }} {{? $schema.length < it.opts.loopRequired && it.schema.properties && Object.keys(it.schema.properties).length }} {{ var $required = []; }} {{~ $schema:$property }} {{ var $propertySch = it.schema.properties[$property]; }} {{? !($propertySch && {{# def.nonEmptySchema:$propertySch}}) }} {{ $required[$required.length] = $property; }} {{?}} {{~}} {{??}} {{ var $required = $schema; }} {{?}} {{?}} {{? $isData || $required.length }} {{ var $currentErrorPath = it.errorPath , $loopRequired = $isData || $required.length >= it.opts.loopRequired , $ownProperties = it.opts.ownProperties; }} {{? $breakOnError }} var missing{{=$lvl}}; {{? $loopRequired }} {{# def.setupLoop }} var {{=$valid}} = true; {{?$isData}}{{# def.check$dataIsArray }}{{?}} for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) { {{=$valid}} = {{=$data}}[{{=$vSchema}}[{{=$i}}]] !== undefined {{? $ownProperties }} && {{# def.isRequiredOwnProperty }} {{?}}; if (!{{=$valid}}) break; } {{? $isData }} } {{?}} {{# def.checkError:'required' }} else { {{??}} if ({{# def.checkMissingProperty:$required }}) { {{# def.errorMissingProperty:'required' }} } else { {{?}} {{??}} {{? $loopRequired }} {{# def.setupLoop }} {{? $isData }} if ({{=$vSchema}} && !Array.isArray({{=$vSchema}})) { {{# def.addError:'required' }} } else if ({{=$vSchema}} !== undefined) { {{?}} for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) { if ({{=$data}}[{{=$vSchema}}[{{=$i}}]] === undefined {{? $ownProperties }} || !{{# def.isRequiredOwnProperty }} {{?}}) { {{# def.addError:'required' }} } } {{? $isData }} } {{?}} {{??}} {{~ $required:$propertyKey }} {{# def.allErrorsMissingProperty:'required' }} {{~}} {{?}} {{?}} {{ it.errorPath = $currentErrorPath; }} {{?? $breakOnError }} if (true) { {{?}}