JSON string to JSON schema?
xucian opened this issue · comments
Possible?
Thanks!
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"}}}'