Milo Yip
a6571d504a
Combine objectDependices and objectRequired into propertyExist array
2016-04-19 15:10:28 +08:00
Milo Yip
f586edd33d
Fix required for duplicated keys
...
Fix #608
2016-04-19 15:06:41 +08:00
Milo Yip
c8a1d51753
Add reproduction test case
2016-04-19 15:05:15 +08:00
Milo Yip
07343d5e33
Merge pull request #605 from miloyip/issue583_regexcrash
...
Fix regex crash
2016-04-17 03:27:06 -05:00
Milo Yip
fa8c676b37
Update changelog
2016-04-17 12:10:44 +08:00
Milo Yip
be352d9548
Fix a bug in regex
...
Due to dereferencing a pointer which may be invalidated
2016-04-17 11:59:09 +08:00
Milo Yip
8f4e99b2e5
Merge pull request #604 from miloyip/coverage
...
Improve coverage to 100%
2016-04-17 11:24:31 +08:00
Milo Yip
d7ee08621a
Update changelog
2016-04-17 10:11:40 +08:00
Milo Yip
01aeebf9bf
Improve reader coverage by removing a default case
2016-04-17 09:47:29 +08:00
Milo Yip
a28e4befed
Improve coverage of Regex by removing default case.
2016-04-17 09:34:04 +08:00
Milo Yip
ba0a137b9c
Remove unnecessary code in GenericSchemaDocument::CreateSchemaRecursive()
2016-04-17 09:17:05 +08:00
Milo Yip
cb2f340d55
Remove ISchemaStateFactory::ReallocState()
2016-04-17 09:11:00 +08:00
Milo Yip
ed6fdb6d78
Improve coverage for SchemaValidator:::AppendToken()
2016-04-17 09:09:25 +08:00
Milo Yip
954f80872d
Improve schema minimum/maximum/multipleOf coverage
2016-04-17 01:55:55 +08:00
Milo Yip
e7149d6659
Fix memory leak for invalid regex
2016-04-17 00:58:32 +08:00
Milo Yip
26e69ffde9
Fix a bug in schema minimum/maximum keywords for 64-bit integer
2016-04-17 00:48:02 +08:00
Milo Yip
ecd8fa3437
Improve coverage of regex
2016-04-16 23:04:40 +08:00
Milo Yip
c71825f80e
Improve Value::IsFloat() coverage
2016-04-16 22:14:38 +08:00
Milo Yip
fdd443120f
Move break into same line to make coverage happy
2016-04-16 22:09:23 +08:00
Milo Yip
bdfa0447ec
Add test cases for ScanCopyUnescapedString
2016-04-16 21:44:33 +08:00
Milo Yip
a6f9cb85ab
Third trial on writer coverage
2016-04-16 16:11:34 +08:00
Milo Yip
3da4afd259
Another trial on writer coverage
2016-04-16 15:19:34 +08:00
Milo Yip
8fcc65bf58
Adjust ScanWriteUnescapedString test case
2016-04-15 19:51:50 +08:00
Milo Yip
8f9ff88c29
Add Writer. ScanWriteUnescapedString to try to improve coverage
2016-04-15 17:03:23 +08:00
Milo Yip
a8970be543
Improve UTF8::Encode() coverage via writing to AutoUTF
2016-04-15 14:15:08 +08:00
Milo Yip
1bfa188d18
Improve encodings coverage
2016-04-15 13:50:24 +08:00
Milo Yip
105c92ee08
Add example catalog in readme
2016-04-15 11:18:00 +08:00
Milo Yip
f4ea0d3f64
Added documentation for kParseNumbersAsStringsFlag
2016-04-15 10:43:14 +08:00
Milo Yip
006533cdea
Added documentation about kParseTrailingCommasFlag
2016-04-15 10:18:16 +08:00
Milo Yip
6bc606c926
Update changelog
2016-04-15 10:09:27 +08:00
Milo Yip
d35c783ec6
Fix schema documentation
2016-04-15 09:06:50 +08:00
Milo Yip
75d0e4ff65
Use single Peek() in SkipWhitespace
...
Fix #594
2016-04-07 00:47:26 +08:00
Milo Yip
47e21a054c
Temp revert cmake for OS X
2016-04-07 00:46:39 +08:00
Milo Yip
795946b1ca
Merge pull request #595 from miloyip/vcwarning
...
Fix VC warnings
2016-04-07 00:44:58 +08:00
Milo Yip
12425693ba
Revert formatting of enum
2016-04-06 23:33:26 +08:00
Milo Yip
49c29d057d
Fix VC warning C4189
2016-04-06 01:16:00 +08:00
Milo Yip
44d114f3ee
Supress VC C4512 warning
2016-04-06 00:47:16 +08:00
Milo Yip
be5a886f8f
Fix clang compilation error
2016-04-06 00:34:45 +08:00
Milo Yip
689be10891
Fix a compilation error
2016-04-06 00:11:49 +08:00
Milo Yip
35ccca8b74
Try to fix VC warning C4512
2016-04-05 23:56:50 +08:00
Milo Yip
8991037ecd
Revert using of static const back to enum due to gcc error
2016-04-05 23:26:08 +08:00
Milo Yip
c843a2655b
Try to fix all /W4 warnings in VC2015
2016-04-04 15:01:34 +08:00
Milo Yip
2418d7cd91
Fix cmake
2016-03-31 15:02:03 +08:00
Milo Yip
d7df1f26ba
Add /W4 and /WX for VC
2016-03-31 14:20:24 +08:00
Milo Yip
89afda0694
Add CMAKE verbose for appveyor
2016-03-31 10:25:55 +08:00
Milo Yip
62a9a6b0d8
Merge pull request #589 from jnicholls/rawnumber
...
RawNumber Improvements / Clang Test Fix / Whitespace Cleanup
2016-03-31 10:18:26 +08:00
Jarred Nicholls
926d7ffcc8
Later clang compilers will warn on float -> double promotion because it can add precision. In the context of RapidJSON – especially with its float methods on GenericValue – I think this warning holds no water and should be ignored.
...
Trim whitespace off the end of various lines.
Added an additional NumberStream specialization that will always perform a TakePush() even when just Take() is called. This supports RawNumber parsing by pushing onto our StackStream particular parts of the number that currently aren't captured because of full precision double parsing, such as the negative sign, scientific number exponents, etc.
RawNumber parsing fails with input streams that don't have copy optimization, such as the BasicIStreamWrapper stream. To work around this, instead do the Transcode copy operation by reading from a UTF8 StringStream instead of the original InputStream. Since the NumberStream downcasts all input Ch into chars, we know we're dealing with UTF8/ASCII compatible stack characters during the Transcoding.
2016-03-29 15:44:30 -04:00
Milo Yip
4fdcb10c3e
Fix #587
2016-03-26 22:47:07 +08:00
Milo Yip
ec32200507
Merge pull request #584 from ludocode/trailing-commas
...
Added optional support for trailing commas
2016-03-21 09:33:59 +08:00
Nicholas Fraser
68217548f3
Added trailing comma support to iterative parser
...
This also fixes cases where the iterative parser should have produced
kParseErrorValueInvalid rather than kParseErrorUnspecifiedSyntaxError
when expecting a value (after a colon in an object, after a comma in an
array, and at the start of an array.)
2016-03-20 12:52:48 -04:00