ts-json-schema-generator
ts-json-schema-generator copied to clipboard
Throw if JSDoc annotations can’t be parsed
Currently if JSDoc annotations can’t be parsed, they are silently ignored.
https://github.com/vega/ts-json-schema-generator/blob/76deba14de3fa29e7798a41627730cb0c6f459d8/src/AnnotationsReader/BasicAnnotationsReader.ts#L98-L104
I suggest to add an option to throw on invalid annotations.
I don't think we need an option but we could throw an error by default.
I would like that, but that would make it a beaking change.
We are pre 1.0 so breaking changes are ok. I try to avoid breaking changes that affect a lot of people.