the test environment is: Debian-11.5 with gcc-10.2.1. You can try it in WSL2, too. In my test the physical machine and WSL2 virtual machine can both reproduct the issue.
in Readme.md, there is an example. And I make a simple modification from RapidJSON to jsoncpp.
and I import a Json::Value object of jsoncpp as schema object.
the variable schema is constructed by valijson::Schema class
in SchemaParser class, the member function populateSchema needs 4 parameters
the test environment is: Debian-11.5 with gcc-10.2.1. You can try it in WSL2, too. In my test the physical machine and WSL2 virtual machine can both reproduct the issue.
in Readme.md, there is an example. And I make a simple modification from RapidJSON to jsoncpp.
and I import a
Json::Value
object of jsoncpp as schema object.the variable
schema
is constructed byvalijson::Schema
classin
SchemaParser
class, the member function populateSchema needs 4 parametersand the last 2 parameters have default value, so at least 2 parameters are needed, and the 2nd parameter is a Schema object. I success in this step.
in
Validator
class, the member functionvalidate
needs 3 parametersand the 1st parameter is a
Subschema
object, it's NOT aSchema
object.so when I compile an example with jsoncpp, the compiler would have an error
though
Schema
is a chile class ofSubschema
, the compiler would not cast it automaticly.