Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




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

Search: