diff options
Diffstat (limited to 'node_modules/ajv-keywords/keywords/dot/switch.jst')
-rw-r--r-- | node_modules/ajv-keywords/keywords/dot/switch.jst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node_modules/ajv-keywords/keywords/dot/switch.jst b/node_modules/ajv-keywords/keywords/dot/switch.jst index 7b2906a60..389678e34 100644 --- a/node_modules/ajv-keywords/keywords/dot/switch.jst +++ b/node_modules/ajv-keywords/keywords/dot/switch.jst @@ -10,7 +10,7 @@ {{# def._validateSwitchRule:if }} {{ $it.createErrors = true; }} {{# def.resetCompositeRule }} - {{=$ifPassed}} = valid{{=$it.level}}; + {{=$ifPassed}} = {{=$nextValid}}; #}} {{## def.validateThen: @@ -18,7 +18,7 @@ {{? $sch.then === false }} {{# def.error:'switch' }} {{?}} - var valid{{=$it.level}} = {{= $sch.then }}; + var {{=$nextValid}} = {{= $sch.then }}; {{??}} {{# def._validateSwitchRule:then }} {{?}} @@ -68,6 +68,6 @@ var {{=$ifPassed}}; {{= $closingBraces }} -var {{=$valid}} = valid{{=$it.level}}; +var {{=$valid}} = {{=$nextValid}}; {{# def.cleanUp }} |