MCPcopy
hub / github.com/ajv-validator/ajv / else

Method else

lib/compile/codegen/index.ts:585–587  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

583
584 // `else` clause - only valid after `if` or `else if` clauses
585 else(): CodeGen {
586 return this._elseNode(new Else())
587 }
588
589 // end `if` statement (needed if gen.if was used only with condition)
590 endIf(): CodeGen {

Callers 15

validatePropertyDepsFunction · 0.80
validateOneOfFunction · 0.80
codeFunction · 0.80
validateMappingFunction · 0.80
exitOnErrorModeFunction · 0.80
validateDiscriminatorFunction · 0.80
validateMappingFunction · 0.80
ifMethod · 0.80
coerceDataFunction · 0.80
groupKeywordsFunction · 0.80
failResultMethod · 0.80
failMethod · 0.80

Calls 1

_elseNodeMethod · 0.95

Tested by

no test coverage detected