Xuanyi Zhou
1e4f59d3ae
add return statement & comment
2020-12-26 23:38:27 -05:00
Xuanyi Zhou
d742a030aa
add body to private copy constructor & copy assignment
2020-12-26 23:27:43 -05:00
Xuanyi Zhou
13f5ab4f44
fix schema test compile error
2020-12-26 22:58:13 -05:00
Silas S. Brown
b7734d97c0
Remove unnecessary wording from BSD license not needed for MIT license ( fixes #528 )
2020-10-09 10:04:27 +01:00
Philipp A Hartmann
a26267d16d
Fix -Wsign-conversion warnings/errors
...
GCC 8 (incorrectly) warns about sign conversions in (constant)
array size expressions:
error: conversion to 'long unsigned int' from 'int' may
change the sign of the result [-Werror=sign-conversion]
char schemaBuffer_[128 * 1024];
Make these expressions unsigned by adding a 'u' suffix to
the first operands.
2018-07-15 16:01:02 +02:00
bogaotory
6f7dcb30d9
again, in relation to solving issue #784 , use SizeType
-typed variable to indicate a none-zero length string has been given in the schema as default value for the json property; added an unittest Object_Required_PassWithDefault
2018-06-01 21:16:26 +01:00
Zoltan Kovago
0fdd8040ce
fix compilation on windows with clang
2018-04-09 15:47:17 +02:00
Christian Semmler
9640209f78
remove superfluous typename
2018-03-26 13:29:52 +02:00
Christian Semmler
f8c8c32b42
fix C++03 compatibility
2018-03-26 13:16:31 +02:00
Christian Semmler
c8530d022f
add test case for remote ref issue
2018-03-26 13:04:35 +02:00
Yuri Khan
8c182e51e7
Flatten allOf keyword violations
2017-09-30 20:16:03 +07:00
Yuri Khan
0566716802
Extend schema validation tests to compare error object
2017-09-24 12:56:55 +07:00
Yuri Khan
c2371584a0
Keep schema URI in GenericSchemaDocument and internal::Schema
2017-09-23 21:36:07 +07:00
Yuri Khan
379b337444
Add failing test for the case when a remote schema is violated ( #1064 )
2017-09-16 17:09:08 +07:00
Milo Yip
fcd2e1f60c
Fix #1017 allOf keyword fail with Writer handler
...
Gave up using static binding for null handler, because it cannot be
used with arbitrary handler type. Change `OutputHandler handler_` to
pointer type.
2017-07-13 16:07:36 +08:00
Milo Yip
df6362d450
Fix patternProperties & additionalProperties lead to ASSERT
...
Fix #825
2017-06-09 10:16:24 +08:00
StilesCrisis
0ec4e86f14
Unit test
...
Add unit test for Issue 848 (segfault in ~Document)
2017-02-27 23:06:05 -08:00
Milo Yip
517dd4dbb8
Fix failing to resolve $ref in allOf causes crash in SchemaValidator::StartObject()
2016-10-17 14:25:24 +08:00
niukuo
250cf666d3
fix wrong length in remote schema
...
Change-Id: Ia96ddf5746f1c18968e9e086f17fe4a24b8480d7
2016-08-31 16:26:27 +08:00
Eli Fidler
035271091f
with recent clang, when expected is false, this code triggers -Wunreachable-code
...
clang advises: "note: silence by adding parentheses to mark code as explicitly dead"
2016-06-13 07:24:26 -07:00
Milo Yip
c8a1d51753
Add reproduction test case
2016-04-19 15:05:15 +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
26e69ffde9
Fix a bug in schema minimum/maximum keywords for 64-bit integer
2016-04-17 00:48:02 +08:00
Milo Yip
7a9166f362
Fix Issue552 test
2016-02-20 22:40:36 +08:00
Milo Yip
db4bc75cd9
Add move constructor for GenericSchemaDocument
2016-02-20 22:18:23 +08:00
Milo Yip
dd2076f8d8
Minor refactoring
2016-02-02 12:56:53 +08:00
Milo Yip
55d2867841
Add SchemaValidatingReader ::IsValid()
2016-01-31 22:36:19 +08:00
Milo Yip
a006648398
Update json schema suite and add perf test
2016-01-30 01:00:01 +08:00
Milo Yip
05968b7031
Fix schema tests and added SchemaValidatingReader
2016-01-27 13:59:14 +08:00
miloyip
c5de8b2cb0
For diagnosis valgrind issue in travis
2015-06-03 23:27:46 +08:00
miloyip
3ffac19f25
Fix compilation in schema test
2015-05-21 16:20:49 +08:00
miloyip
85c8b657c0
Achieve zero heap allocation for SchemaValidator.TestSuite
2015-05-17 22:22:53 +08:00
miloyip
a4cbd3f81b
Refactor SchemaValidator.TestSuite to use MemoryPoolAllocator explicitly
2015-05-17 20:44:11 +08:00
miloyip
a92c3b6995
Make schema working for UTF-16 and other encodings
2015-05-17 10:21:58 +08:00
Milo Yip
5b6061c7e6
Fix meta schema validation
2015-05-16 15:51:36 +08:00
miloyip
e0a8a327ea
Add meta schema test (failing now)
2015-05-13 20:14:41 +08:00
miloyip
979088de60
Add 64-bit integer schema validations
2015-05-13 09:44:25 +08:00
miloyip
1a59ab50dc
Add invalid schema keyword
2015-05-11 23:53:03 +08:00
Milo Yip
5bc9523cbf
Add invalid schema/document pointers
2015-05-11 13:55:34 +08:00
Milo Yip
6b7e7d769d
Fix gcc warning
2015-05-11 11:13:28 +08:00
Milo Yip
f788702147
Fix compilation error
2015-05-11 10:21:11 +08:00
miloyip
3f1e2c4003
Use allocator in SchemaDocument
2015-05-11 00:37:18 +08:00
miloyip
01393e0145
Add uniqueItems in schema
2015-05-10 17:44:43 +08:00
miloyip
573faa9025
Try to fix a gcc warning
2015-05-10 10:47:21 +08:00
miloyip
74300ac718
Add Hasher::IsValid()
2015-05-10 10:26:33 +08:00
miloyip
c040d26c79
Disable printing hash code
2015-05-10 10:23:15 +08:00
miloyip
8209077b8a
Try to fix effc++ warning
2015-05-10 09:00:37 +08:00
miloyip
1af660c8cb
Add hasher
2015-05-10 08:59:58 +08:00
miloyip
44fbf9c174
Add meta schema file
2015-05-09 21:42:43 +08:00