Skip to content

Commit b1a4d91

Browse files
authored
Merge pull request Tencent#1779 from pavel-pimenov/fix-1778-part-1
fix 1778 (part 1)
2 parents 8be6459 + 3a65e2d commit b1a4d91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/rapidjson/schema.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,12 +504,12 @@ class Schema {
504504
AssignIfExist(allOf_, *schemaDocument, p, value, GetAllOfString(), document);
505505
AssignIfExist(anyOf_, *schemaDocument, p, value, GetAnyOfString(), document);
506506
AssignIfExist(oneOf_, *schemaDocument, p, value, GetOneOfString(), document);
507-
}
508507

509-
if (const ValueType* v = GetMember(value, GetNotString())) {
508+
if (const ValueType* v = GetMember(value, GetNotString())) {
510509
schemaDocument->CreateSchema(&not_, p.Append(GetNotString(), allocator_), *v, document);
511510
notValidatorIndex_ = validatorCount_;
512511
validatorCount_++;
512+
}
513513
}
514514

515515
// Object
@@ -953,7 +953,7 @@ class Schema {
953953
}
954954

955955
if (additionalPropertiesSchema_) {
956-
if (additionalPropertiesSchema_ && context.patternPropertiesSchemaCount > 0) {
956+
if (context.patternPropertiesSchemaCount > 0) {
957957
context.patternPropertiesSchemas[context.patternPropertiesSchemaCount++] = additionalPropertiesSchema_;
958958
context.valueSchema = typeless_;
959959
context.valuePatternValidatorType = Context::kPatternValidatorWithAdditionalProperty;

0 commit comments

Comments
 (0)