Sha256: 088fd6c53a93c4e4633ecf2e873340f84e94939316f64b776c9a81bb732a1ba9

Contents?: true

Size: 552 Bytes

Versions: 269

Compression:

Stored size: 552 Bytes

Contents

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

{{
  var $i = 'i' + $lvl
    , $vSchema = 'schema' + $lvl;
}}

{{? !$isData }}
  var {{=$vSchema}} = validate.schema{{=$schemaPath}};
{{?}}
var {{=$valid}};

{{?$isData}}{{# def.check$dataIsArray }}{{?}}

{{=$valid}} = false;

for (var {{=$i}}=0; {{=$i}}<{{=$vSchema}}.length; {{=$i}}++)
  if (equal({{=$data}}, {{=$vSchema}}[{{=$i}}])) {
    {{=$valid}} = true;
    break;
  }

{{? $isData }}  }  {{?}}

{{# def.checkError:'enum' }}

{{? $breakOnError }} else { {{?}}

Version data entries

269 entries across 152 versions & 21 rubygems

Version Path
disco_app-0.18.1 test/dummy/node_modules/sass-loader/node_modules/ajv/lib/dot/enum.jst
disco_app-0.18.1 test/dummy/node_modules/@rails/webpacker/node_modules/ajv/lib/dot/enum.jst
disco_app-0.18.1 test/dummy/node_modules/ajv/lib/dot/enum.jst
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/ajv/lib/dot/enum.jst
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/sass-loader/node_modules/ajv/lib/dot/enum.jst
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/style-loader/node_modules/ajv/lib/dot/enum.jst
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/css-loader/node_modules/ajv/lib/dot/enum.jst
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/file-loader/node_modules/ajv/lib/dot/enum.jst
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@rails/webpacker/node_modules/ajv/lib/dot/enum.jst
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/babel-loader/node_modules/ajv/lib/dot/enum.jst
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/compression-webpack-plugin/node_modules/ajv/lib/dot/enum.jst
disco_app-0.14.0 test/dummy/node_modules/compression-webpack-plugin/node_modules/ajv/lib/dot/enum.jst
disco_app-0.14.0 test/dummy/node_modules/file-loader/node_modules/ajv/lib/dot/enum.jst
disco_app-0.14.0 test/dummy/node_modules/css-loader/node_modules/ajv/lib/dot/enum.jst
disco_app-0.14.0 test/dummy/node_modules/ajv/lib/dot/enum.jst
disco_app-0.14.0 test/dummy/node_modules/babel-loader/node_modules/ajv/lib/dot/enum.jst
disco_app-0.14.0 test/dummy/node_modules/style-loader/node_modules/ajv/lib/dot/enum.jst
disco_app-0.14.0 test/dummy/node_modules/@rails/webpacker/node_modules/ajv/lib/dot/enum.jst
disco_app-0.14.0 test/dummy/node_modules/sass-loader/node_modules/ajv/lib/dot/enum.jst
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/sass-loader/node_modules/ajv/lib/dot/enum.jst