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

Support for 2020-12 style tuples via prefixItems #83

Open
Foo42 opened this issue Feb 20, 2024 · 3 comments
Open

Support for 2020-12 style tuples via prefixItems #83

Foo42 opened this issue Feb 20, 2024 · 3 comments

Comments

@Foo42
Copy link

Foo42 commented Feb 20, 2024

When specifying a tuple style array earlier versions of JSON Schema called for the items property to be an array of schemas (one per element). This is supported by json-schema-to-zod. However JSON Schema 2020-12 deprecated this in favour of a prefixItems property used in a similar way.

I'm part way through creating a PR to add support for prefixItems (in addition to an items array). Is this something you would look to support? I couldn't find a clear declaration of the latest version of JSON Schema this library aims to support.

@StefanTerdell
Copy link
Owner

StefanTerdell commented Feb 25, 2024

@Foo42 Sounds good!

@StefanTerdell
Copy link
Owner

@Foo42 Any progress? :)

@Foo42
Copy link
Author

Foo42 commented Apr 26, 2024 via email

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

2 participants