Open ledergec opened 5 years ago
TODO: write unittests
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.
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.