Open
Description
ts-json-schema-generator
only incompletely generates a schema based on our TypeScript types. It seems to have some longstanding bugs around keyof
. I doubt they'll be fixed any time soon.
We should explore alternatives for keeping our TypeScript types and JSON Schema in sync.
Some routes we might consider:
- Use a different method to generate JSON Schemas (e.g., describe the types with
zod
and use zod-to-json-schema) - Author JSON Schema directly and generate TypesScript types (e.g.,
json-schema-to-typescript
)