mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-28 03:20:15 +01:00
@@ -1322,6 +1322,13 @@ TEST(SchemaValidator, Issue728_AllOfRef) {
|
||||
VALIDATE(s, "{\"key1\": \"abc\", \"key2\": \"def\"}", true);
|
||||
}
|
||||
|
||||
TEST(SchemaValidator, Issue825) {
|
||||
Document sd;
|
||||
sd.Parse("{\"type\": \"object\", \"additionalProperties\": false, \"patternProperties\": {\"^i\": { \"type\": \"string\" } } }");
|
||||
SchemaDocument s(sd);
|
||||
VALIDATE(s, "{ \"item\": \"hello\" }", true);
|
||||
}
|
||||
|
||||
#ifdef __clang__
|
||||
RAPIDJSON_DIAG_POP
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user