PHP 8.2.30
Preview: propertyNames.jst Size: 1.28 KB
/proc/thread-self/root/opt/alt/alt-nodejs8/root/lib/node_modules/npm/node_modules/ajv/lib/dot/propertyNames.jst

{{# def.definitions }}
{{# def.errors }}
{{# def.setupKeyword }}
{{# def.setupNextLevel }}

{{? {{# def.nonEmptySchema:$schema }} }}
  {{
    $it.schema = $schema;
    $it.schemaPath = $schemaPath;
    $it.errSchemaPath = $errSchemaPath;
  }}

  {{
    var $key = 'key' + $lvl
      , $idx = 'idx' + $lvl
      , $i = 'i' + $lvl
      , $invalidName = '\' + ' + $key + ' + \''
      , $dataNxt = $it.dataLevel = it.dataLevel + 1
      , $nextData = 'data' + $dataNxt
      , $dataProperties = 'dataProperties' + $lvl
      , $ownProperties = it.opts.ownProperties
      , $currentBaseId = it.baseId;
  }}

  var {{=$errs}} = errors;

  {{? $ownProperties }}
    var {{=$dataProperties}} = undefined;
  {{?}}
  {{# def.iterateProperties }}
    var startErrs{{=$lvl}} = errors;

    {{ var $passData = $key; }}
    {{# def.setCompositeRule }}
    {{# def.generateSubschemaCode }}
    {{# def.optimizeValidate }}
    {{# def.resetCompositeRule }}

    if (!{{=$nextValid}}) {
      for (var {{=$i}}=startErrs{{=$lvl}}; {{=$i}}<errors; {{=$i}}++) {
        vErrors[{{=$i}}].propertyName = {{=$key}};
      }
      {{# def.extraError:'propertyNames' }}
      {{? $breakOnError }} break; {{?}}
    }
  }
{{?}}

{{? $breakOnError }}
  {{= $closingBraces }}
  if ({{=$errs}} == errors) {
{{?}}

{{# def.cleanUp }}

Directory Contents

Dirs: 0 × Files: 28

Name Size Perms Modified Actions
629 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
943 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
2.17 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
280 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
1.18 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
4.85 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
859 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
3.80 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
1.80 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
552 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
8.07 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
3.09 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
2.57 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
1.17 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
618 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
861 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
922 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
348 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
10.08 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
1.28 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
2.37 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
2.80 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
837 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
7.06 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
3.25 KB lrw-r--r-- 2021-09-28 10:29:28
Edit Download
327 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
332 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download
350 B lrw-r--r-- 2021-09-28 10:29:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).