You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have strong typing available through Typescript. Could we use Typescript reflection on these to then generate json schemas for downstream users who might not have Typescript available. The first obvious use case would be providing $schema values for json parsers like the Monaco editor.
A simple implementation is shown below , but I don't want any handwritten schemas like this being distributed if they can get out out of sync.
Is it possible to generate a JSON schema from a Typescript type automatically? We'd need to target the SingleToken type then I think, and generate it on prepublish, so it's always in sync with the types.
We have strong typing available through Typescript. Could we use Typescript reflection on these to then generate json schemas for downstream users who might not have Typescript available. The first obvious use case would be providing
$schema
values for json parsers like the Monaco editor.A simple implementation is shown below , but I don't want any handwritten schemas like this being distributed if they can get out out of sync.
The text was updated successfully, but these errors were encountered: