ledergec / rapidschema

Abstraction Layer on Top of Rapidjson which allows easy and efficient Json Schema Parsing
Other
3 stars 0 forks source link

Implement a cross validation API #15

Open ledergec opened 5 years ago

ledergec commented 5 years ago

When designing keep in mind that maybe one day the source code should be generated. So ideally the design separates the manually written cross validation code from the generated schema validation code.

ledergec commented 5 years ago

TODO: write unittests

ledergec commented 5 years ago

There is a branch containing an idead. However, the better idea seems to be to implement a recursive function calling Validate on every item.

In order to be able to separate cross validation code from generated code one could try to use the curiously recurring template pattern.