Sha256: f788389e63f1fa7fe3f23b22b144cdcb3eeb2ad725878d3e62a557ba5d92daed

Contents?: true

Size: 1.28 KB

Versions: 25

Compression:

Stored size: 1.28 KB

Contents

{{# 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 }}

Version data entries

25 entries across 11 versions & 5 rubygems

Version Path
optimacms-0.4.3 spec/dummy/node_modules/schema-utils/node_modules/ajv/lib/dot/propertyNames.jst
optimacms-0.4.3 spec/dummy/node_modules/ajv-keywords/node_modules/ajv/lib/dot/propertyNames.jst
optimacms-0.4.3 spec/dummy/node_modules/ajv/lib/dot/propertyNames.jst
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/node_modules/ajv/lib/dot/propertyNames.jst
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/node_modules/ajv/lib/dot/propertyNames.jst
optimacms-0.4.2 spec/dummy/node_modules/ajv/lib/dot/propertyNames.jst
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/node_modules/ajv/lib/dot/propertyNames.jst
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/node_modules/ajv/lib/dot/propertyNames.jst
optimacms-0.4.2 spec/dummy/node_modules/ajv-keywords/node_modules/ajv/lib/dot/propertyNames.jst
optimacms-0.4.2 spec/dummy/node_modules/schema-utils/node_modules/ajv/lib/dot/propertyNames.jst
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/har-validator/node_modules/ajv/lib/dot/propertyNames.jst
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/node-sass/node_modules/ajv/lib/dot/propertyNames.jst
lux_assets-0.2.11 ./node_modules/ajv/lib/dot/propertyNames.jst
lux_assets-0.2.9 ./node_modules/ajv/lib/dot/propertyNames.jst
lux_assets-0.2.4 ./node_modules/ajv/lib/dot/propertyNames.jst
lux_assets-0.2.2 ./node_modules/ajv/lib/dot/propertyNames.jst
lux_assets-0.2.1 ./node_modules/ajv/lib/dot/propertyNames.jst
locomotivecms-3.4.0 app/javascript/node_modules/ajv/lib/dot/propertyNames.jst
locomotivecms-3.4.0 app/javascript/node_modules/jest-environment-jsdom/node_modules/ajv/lib/dot/propertyNames.jst
locomotivecms-3.4.0 app/javascript/node_modules/har-validator/node_modules/ajv/lib/dot/propertyNames.jst