Steve Hanson
2d87923e91
remove unnecessary templating from schema tests
2022-12-01 00:42:44 +08:00
Steve Hanson
ecb8d9e3a0
add dump of unexpected schema errors in schematest.cpp
2022-12-01 00:42:44 +08:00
Steve Hanson
89f6717f0b
corrections
2022-12-01 00:42:44 +08:00
Steve Hanson
338d8defdb
initial
2022-12-01 00:42:44 +08:00
Steve Hanson
6b57738e4a
handle internal refs properly
2021-03-11 14:49:28 +00:00
Steve Hanson
fe1a29ca69
fix platform-dependent compiler error with >>
2021-02-25 23:54:44 +00:00
Steve Hanson
ad73c032e7
fix compile errors
2021-02-25 22:51:35 +00:00
Steve Hanson
7698b3cd48
code and tests
2021-02-25 21:45:29 +00:00
Steve Hanson
9bb81e20ff
fix crash where simple type with sub-schema has a bad value
2021-02-12 17:36:55 +00:00
Steve Hanson
167efb4fa0
work around issue 1089
2021-02-03 08:34:10 +00:00
Steve Hanson
28dc42d8d3
restore coverage
2021-01-29 19:20:01 +00:00
Steve Hanson
05e7b33977
code and tests
2021-01-28 12:11:43 +00:00
Xuanyi Zhou
5e50f27ed1
also initialize class member
2020-12-26 23:41:42 -05:00
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