Rethink JSON Schema generation #2722
Labels
dependencies
Pull requests that update a dependency file
package:web-features
schema
Schema changes, proposals, and bugs
tools and infrastructure
Project internal tooling, such as linters, GitHub Actions, or repo settings
ts-json-schema-generator
only incompletely generates a schema based on our TypeScript types. It seems to have some longstanding bugs aroundkeyof
. 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:
zod
and use zod-to-json-schema)json-schema-to-typescript
)The text was updated successfully, but these errors were encountered: