We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The way tuples are defined have been going through some changes https://json-schema.org/understanding-json-schema/reference/array.html#tuple-validation
Previously the tuple [string, number] would be defined as
[string, number]
{ "type": "array", "items": [ { "type": "string"}, { "type": "number"} ] }
With some of the newer drafts the same tuple [string, number] would be defined as
{ "type": "array", "prefixItems": [ { "type": "string"}, { "type": "number"} ] }
The io-ts-from-json-schema converter currently only supports the old tuple schema definition.
There are also some other changes related to how other keywords are interpreted in relation to the tuple definition.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The way tuples are defined have been going through some changes https://json-schema.org/understanding-json-schema/reference/array.html#tuple-validation
Previously the tuple
[string, number]
would be defined asWith some of the newer drafts the same tuple
[string, number]
would be defined asThe io-ts-from-json-schema converter currently only supports the old tuple schema definition.
There are also some other changes related to how other keywords are interpreted in relation to the tuple definition.
The text was updated successfully, but these errors were encountered: