Sha256: 088fd6c53a93c4e4633ecf2e873340f84e94939316f64b776c9a81bb732a1ba9

Contents?: true

Size: 552 Bytes

Versions: 268

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

268 entries across 151 versions & 21 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.50 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.49 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.48 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.47 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.46 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.45 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.44 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.43 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.42 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.41 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.40 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.39 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.38 node_modules/ajv/lib/dot/enum.jst
optimacms-0.1.61 spec/dummy/node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.32 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.31 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.30 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.29 node_modules/ajv/lib/dot/enum.jst
immosquare-cleaner-0.1.28 node_modules/ajv/lib/dot/enum.jst