Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to create an agnostic version of extractJsonSchema() (and it's utilities) #29

Open
crobinson42 opened this issue Sep 9, 2022 · 0 comments

Comments

@crobinson42
Copy link

I was wondering about a use-case I have typescript and I want to generate JSON-schema (without creating suretype types).

If there can be a utility function (ie: tsToJsonSchema()) that can be passed a typescript string and it generates a JSON schema. All utilities in this library rely on the CoreValidator or Validator type - is there a possible path for building a function that can accomplish this?

Note: typescript-to-json-schema is a great tool but it's SLOW and IMO convoluted for solving this problem.

Any ideas or thoughts on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant