File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24674,11 +24674,11 @@ function extend() {
24674
24674
if (optionAPI('useExamplesValue') && 'example' in schema) {
24675
24675
var clonedSchema,
24676
24676
result,
24677
- finalResult ,
24677
+ isExampleValid ,
24678
24678
hashSchema = hash(schema);
24679
24679
24680
24680
if(seenSchemaMap.has(hashSchema)) {
24681
- finalResult = seenSchemaMap.get(hashSchema);
24681
+ isExampleValid = seenSchemaMap.get(hashSchema);
24682
24682
}
24683
24683
else {
24684
24684
// avoid minItems and maxItems while checking for valid examples
@@ -24696,12 +24696,12 @@ function extend() {
24696
24696
}
24697
24697
24698
24698
// Store the final result that needs to be used in the seen map
24699
- finalResult = result && result.length === 0;
24700
- seenSchemaMap.set(hashSchema, finalResult );
24699
+ isExampleValid = result && result.length === 0;
24700
+ seenSchemaMap.set(hashSchema, isExampleValid );
24701
24701
}
24702
24702
24703
24703
// Use example only if valid
24704
- if (finalResult ) {
24704
+ if (isExampleValid ) {
24705
24705
return schema.example;
24706
24706
}
24707
24707
}
You can’t perform that action at this time.
0 commit comments