forked from Tencent/rapidjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update json schema suite and add perf test
- Loading branch information
Showing
24 changed files
with
602 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[ | ||
{ | ||
"description": "invalid type for default", | ||
"schema": { | ||
"properties": { | ||
"foo": { | ||
"type": "integer", | ||
"default": [] | ||
} | ||
} | ||
}, | ||
"tests": [ | ||
{ | ||
"description": "valid when property is specified", | ||
"data": {"foo": 13}, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "still valid when the invalid default is used", | ||
"data": {}, | ||
"valid": true | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "invalid string value for default", | ||
"schema": { | ||
"properties": { | ||
"bar": { | ||
"type": "string", | ||
"minLength": 4, | ||
"default": "bad" | ||
} | ||
} | ||
}, | ||
"tests": [ | ||
{ | ||
"description": "valid when property is specified", | ||
"data": {"bar": "good"}, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "still valid when the invalid default is used", | ||
"data": {}, | ||
"valid": true | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[ | ||
{ | ||
"description": "invalid type for default", | ||
"schema": { | ||
"properties": { | ||
"foo": { | ||
"type": "integer", | ||
"default": [] | ||
} | ||
} | ||
}, | ||
"tests": [ | ||
{ | ||
"description": "valid when property is specified", | ||
"data": {"foo": 13}, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "still valid when the invalid default is used", | ||
"data": {}, | ||
"valid": true | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "invalid string value for default", | ||
"schema": { | ||
"properties": { | ||
"bar": { | ||
"type": "string", | ||
"minLength": 4, | ||
"default": "bad" | ||
} | ||
} | ||
}, | ||
"tests": [ | ||
{ | ||
"description": "valid when property is specified", | ||
"data": {"bar": "good"}, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "still valid when the invalid default is used", | ||
"data": {}, | ||
"valid": true | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.