Hacker News new | past | comments | ask | show | jobs | submit login

It's doable if you really want to: https://docs.nestjs.com/openapi/cli-plugin#overview

(Also doable without a compiler step, but since it's TS one more compiler step isn't the end of the world: https://docs.nestjs.com/techniques/validation#auto-validatio...)




I do use this. It's not as seamless as using FastAPI. Also not as type-safe as FastAPI.

You can simply type a class variable as an int while the validation decorator works on a completely different type. It's an illusion of type safety.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: