Sha256: 9076a5ff50df0a5952444ac2cc65993a3525ddf104aa67e1d6ca0e956f5a7f49

Contents?: true

Size: 677 Bytes

Versions: 102

Compression:

Stored size: 677 Bytes

Contents

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

{{
  var $key = 'key' + $lvl
    , $matched = 'patternMatched' + $lvl
    , $closingBraces = ''
    , $ownProperties = it.opts.ownProperties;
}}

var {{=$valid}} = true;
{{~ $schema:$pProperty }}
  var {{=$matched}} = false;
  for (var {{=$key}} in {{=$data}}) {
    {{# def.checkOwnProperty }}
    {{=$matched}} = {{= it.usePattern($pProperty) }}.test({{=$key}});
    if ({{=$matched}}) break;
  }

  {{ var $missingPattern = it.util.escapeQuotes($pProperty); }}
  if (!{{=$matched}}) {
    {{=$valid}} = false;
    {{# def.addError:'patternRequired' }}
  } {{# def.elseIfValid }}
{{~}}

{{= $closingBraces }}

Version data entries

102 entries across 53 versions & 7 rubygems

Version Path
govuk_publishing_components-16.21.0 node_modules/ajv-keywords/keywords/dot/patternRequired.jst
govuk_publishing_components-16.21.0 node_modules/ajv/lib/dot/v5/patternRequired.jst
govuk_publishing_components-16.20.1 node_modules/ajv/lib/dot/v5/patternRequired.jst
govuk_publishing_components-16.20.1 node_modules/ajv-keywords/keywords/dot/patternRequired.jst
govuk_publishing_components-16.20.0 node_modules/ajv/lib/dot/v5/patternRequired.jst
govuk_publishing_components-16.20.0 node_modules/ajv-keywords/keywords/dot/patternRequired.jst
govuk_publishing_components-16.19.0 node_modules/ajv/lib/dot/v5/patternRequired.jst
govuk_publishing_components-16.19.0 node_modules/ajv-keywords/keywords/dot/patternRequired.jst
govuk_publishing_components-16.18.0 node_modules/ajv-keywords/keywords/dot/patternRequired.jst
govuk_publishing_components-16.18.0 node_modules/ajv/lib/dot/v5/patternRequired.jst
govuk_publishing_components-16.17.0 node_modules/ajv/lib/dot/v5/patternRequired.jst
govuk_publishing_components-16.17.0 node_modules/ajv-keywords/keywords/dot/patternRequired.jst
optimacms-0.4.3 spec/dummy/node_modules/node-gyp/node_modules/ajv/lib/dot/v5/patternRequired.jst
optimacms-0.4.2 spec/dummy/node_modules/node-gyp/node_modules/ajv/lib/dot/v5/patternRequired.jst
locomotivecms-3.4.0 app/javascript/node_modules/node-gyp/node_modules/ajv/lib/dot/v5/patternRequired.jst
affiliator-0.2.1 node_modules/fsevents/node_modules/ajv/lib/dot/v5/patternRequired.jst
guard-sass-lint-0.1.2 node_modules/ajv/lib/dot/v5/patternRequired.jst
guard-sass-lint-0.1.2 node_modules/ajv-keywords/keywords/dot/patternRequired.jst
guard-sass-lint-0.1.1 node_modules/ajv-keywords/keywords/dot/patternRequired.jst
guard-sass-lint-0.1.1 node_modules/ajv/lib/dot/v5/patternRequired.jst