@chaos_monster
@lxztlr
@kotzendekrabbe
@typescript I use JSON schema to validate,
since this is typically part of the documentation of the API.
And with JSON I want runtime validation, not just types.
The best approach IMO is io-ts, but not all devs like that.