json-schema-to-typescript icon indicating copy to clipboard operation
json-schema-to-typescript copied to clipboard

enhancement bcherny#543 - Prefix items support

Open TheoAnastasiadis opened this issue 1 year ago • 2 comments

Added optional --usePrefixItems flag that defaults to false.

When passed JSON schemas containing prefixItems and items keys are normalized as items and additionalItems, as per JSON Schema Draft 2020-12.

The draft also contains changes to the $recursiveRef and $recursiveAnchor keywords, which this PR does not deal with.

✔Tests added

TheoAnastasiadis avatar Jan 26 '24 10:01 TheoAnastasiadis

@TheoAnastasiadis Any chance you are still able to work on this? I would find this really helpful for my project. Thanks!

simonvarey avatar Jun 11 '24 22:06 simonvarey

Forgot about this completely. Will hopefully be free this weekend and I'll make the requested changes 🤞🤞

TheoAnastasiadis avatar Jun 12 '24 19:06 TheoAnastasiadis