
NfNitLoop ("Cody Casterline 🏳️🌈") wrote:
Most recently, I've been trying to make some REST APIs available via an OpenAPI spec. My company has chosen a code-first approach, with a framework that:
* Requires that you use annotations to add type information to *classes*
* Does not check that the TypeScript types match the annotated types. (Because, AFAICT, you can't.)
* DOES NOT DO ANY RUNTIME TYPE VALIDATION based on all of the types you have had to meticulously, redundantly annotate.So for runtime validation, redefine everything! 😭