Sha256: 7bb1388ddb94f3d073f08f57e73fa772795466d0b2153a07dcebc36993bd4d08

Contents?: true

Size: 941 Bytes

Versions: 53

Compression:

Stored size: 941 Bytes

Contents

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

{{
  var $noEmptySchema = $schema.every(function($sch) {
    return {{# def.nonEmptySchema:$sch }};
  });
}}
{{? $noEmptySchema }}
  {{ var $currentBaseId = $it.baseId; }}
  var {{=$errs}} = errors;
  var {{=$valid}} = false;

  {{# def.setCompositeRule }}

  {{~ $schema:$sch:$i }}
    {{
      $it.schema = $sch;
      $it.schemaPath = $schemaPath + '[' + $i + ']';
      $it.errSchemaPath = $errSchemaPath + '/' + $i;
    }}

    {{# def.insertSubschemaCode }}

    {{=$valid}} = {{=$valid}} || {{=$nextValid}};

    if (!{{=$valid}}) {
    {{ $closingBraces += '}'; }}
  {{~}}

  {{# def.resetCompositeRule }}

  {{= $closingBraces }}

  if (!{{=$valid}}) {
    {{# def.addError:'anyOf' }}
  } else {
    {{# def.resetErrors }}
  {{? it.opts.allErrors }} } {{?}}

  {{# def.cleanUp }}
{{??}}
  {{? $breakOnError }}
    if (true) {
  {{?}}
{{?}}

Version data entries

53 entries across 53 versions & 7 rubygems

Version Path
ilog-0.4.1 node_modules/ajv/lib/dot/anyOf.jst
ilog-0.4.0 node_modules/ajv/lib/dot/anyOf.jst
ilog-0.3.3 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-18.0.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.21.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.20.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.19.1 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.19.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.18.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.17.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.16.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.15.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.14.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.13.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.12.2 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.12.1 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.12.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.11.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.10.0 node_modules/ajv/lib/dot/anyOf.jst
govuk_publishing_components-17.9.0 node_modules/ajv/lib/dot/anyOf.jst