Sha256: 6d9bb7600f847bc41e56a7734ee359df86a0e1d401f03335085128d83d7b06da

Contents?: true

Size: 781 Bytes

Versions: 128

Compression:

Stored size: 781 Bytes

Contents

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

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

var {{=$valid}} = true;
{{? $ownProperties }}
  var {{=$dataProperties}} = undefined;
{{?}}

{{~ $schema:$pProperty }}
  var {{=$matched}} = false;
  {{# def.iterateProperties }}
    {{=$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

128 entries across 74 versions & 12 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.18.0 test/dummy/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.18.2 test/dummy/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.16.1 test/dummy/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.16.1 test/dummy/node_modules/style-loader/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.16.1 test/dummy/node_modules/@rails/webpacker/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.16.1 test/dummy/node_modules/file-loader/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.16.1 test/dummy/node_modules/sass-loader/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.16.1 test/dummy/node_modules/compression-webpack-plugin/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.16.1 test/dummy/node_modules/css-loader/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.16.1 test/dummy/node_modules/babel-loader/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.15.2 test/dummy/node_modules/@rails/webpacker/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.15.2 test/dummy/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.15.2 test/dummy/node_modules/style-loader/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.15.2 test/dummy/node_modules/babel-loader/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.15.2 test/dummy/node_modules/compression-webpack-plugin/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.15.2 test/dummy/node_modules/file-loader/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.15.2 test/dummy/node_modules/css-loader/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.15.2 test/dummy/node_modules/sass-loader/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
disco_app-0.18.4 test/dummy/node_modules/@rails/webpacker/node_modules/ajv-keywords/keywords/dot/patternRequired.jst