Closed EmileSpecs closed 2 months ago
It seems to me like the most simple solution here is just to use JSON Schema instead, as it doesn't give any errors when doing the same circular relations.
Any opinions, as I know TypeBox is the preferred option? Doesn't TypeBox just compile to JSON Schema anyway?
Hi
Please see https://github.com/sinclairzx81/typebox/issues/844 for reference.
The solution offered unfortunately won't work in the context of feathers since none of the other functions like the
TReference
type produced for schema.For example
getValidator
wants schema:schema: TObject<TProperties> | TIntersect<TObject<TProperties>[]> | TUnion<TObject<TProperties>[]>
Is there any other suggested way of defining references to other schemas that reference each other that will work?
Reference to my definitions as mentioned in the post above:
The provided solution that does not solve the issue for me in feathers:
Would appreciate some help on how to make this work!