Open puppybits opened 4 years ago
@puppybits It seems to fail because the URI should not include "<" and ">". I've resolved this by forking and removing those characters. I assume this would work too if you just used the flag "uniqueNames".
I fixed this issue in https://github.com/vega/ts-json-schema-generator.
We're composing types to make partial validation. Both generate schemas but Type Intersection schemas fail in AJV but extending an Interface is accepted by AJV as a valid Schema.
Type Intersections create an
allOf
at the root which fail when sending to AJV.AJV error: