The result in the above code sample should return an error about value: 0 not being a string. Instead Enjoi fails at schema parsing time with a call stack size exceeded error.
This is because Enjoi can't handle schemas with valid self references in them. This issue had been previously raised in #5 and you suggested handling circular references as part of a dereferencing step using another tool. However even when using a fully dereferenced schema, like the above example, Enjoi still breaks.
As is, seems like Enjoi is incapable of parsing valid, recursive JSONSchema no matter how they're passed.
The
result
in the above code sample should return an error aboutvalue: 0
not being a string. Instead Enjoi fails at schema parsing time with a call stack size exceeded error.This is because Enjoi can't handle schemas with valid self references in them. This issue had been previously raised in #5 and you suggested handling circular references as part of a dereferencing step using another tool. However even when using a fully dereferenced schema, like the above example, Enjoi still breaks.
As is, seems like Enjoi is incapable of parsing valid, recursive JSONSchema no matter how they're passed.