@@ -530,12 +530,12 @@ class Schema {
530
530
AssignIfExist (allOf_, *schemaDocument, p, value, GetAllOfString (), document);
531
531
AssignIfExist (anyOf_, *schemaDocument, p, value, GetAnyOfString (), document);
532
532
AssignIfExist (oneOf_, *schemaDocument, p, value, GetOneOfString (), document);
533
- }
534
533
535
- if (const ValueType* v = GetMember (value, GetNotString ())) {
536
- schemaDocument->CreateSchema (¬_, p.Append (GetNotString (), allocator_), *v, document, id_);
537
- notValidatorIndex_ = validatorCount_;
538
- validatorCount_++;
534
+ if (const ValueType* v = GetMember (value, GetNotString ())) {
535
+ schemaDocument->CreateSchema (¬_, p.Append (GetNotString (), allocator_), *v, document, id_);
536
+ notValidatorIndex_ = validatorCount_;
537
+ validatorCount_++;
538
+ }
539
539
}
540
540
541
541
// Object
@@ -983,7 +983,7 @@ class Schema {
983
983
}
984
984
985
985
if (additionalPropertiesSchema_) {
986
- if (additionalPropertiesSchema_ && context.patternPropertiesSchemaCount > 0 ) {
986
+ if (context.patternPropertiesSchemaCount > 0 ) {
987
987
context.patternPropertiesSchemas [context.patternPropertiesSchemaCount ++] = additionalPropertiesSchema_;
988
988
context.valueSchema = typeless_;
989
989
context.valuePatternValidatorType = Context::kPatternValidatorWithAdditionalProperty ;
0 commit comments