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

JSON string to JSON schema? #547

Open
xucian opened this issue Feb 5, 2023 · 1 comment
Open

JSON string to JSON schema? #547

xucian opened this issue Feb 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@xucian
Copy link

xucian commented Feb 5, 2023

Possible?

Thanks!

@wyfo
Copy link
Owner

wyfo commented Mar 11, 2023

I don't really understand the request. Do you think about this kind of function?

assert json_to_schema('{"foo": 0}') == '{"$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {"foo": {"type": "integer"}}}'

@wyfo wyfo added the enhancement New feature or request label Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants