-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Labels
dependenciesPull requests that update a dependency filePull requests that update a dependency filepackage:web-featuresschemaSchema changes, proposals, and bugsSchema changes, proposals, and bugstools and infrastructureProject internal tooling, such as linters, GitHub Actions, or repo settingsProject internal tooling, such as linters, GitHub Actions, or repo settings
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
)
Metadata
Metadata
Assignees
Labels
dependenciesPull requests that update a dependency filePull requests that update a dependency filepackage:web-featuresschemaSchema changes, proposals, and bugsSchema changes, proposals, and bugstools and infrastructureProject internal tooling, such as linters, GitHub Actions, or repo settingsProject internal tooling, such as linters, GitHub Actions, or repo settings