Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
943 B · 48 lines
at lambda-parse
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{{# 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.extraError:'anyOf' }} } else { {{# def.resetErrors }} {{? it.opts.allErrors }} } {{?}}
{{# def.cleanUp }}{{??}} {{? $breakOnError }} if (true) { {{?}}{{?}}