Closed smeijer closed 6 months ago
I noticed a comment in another PR where the author was asked to update the changelog, so I went ahead and did that here already. Please feel free to modify whatever needs to be modified to get this merged.
Again, thanks for the PR! closed for https://github.com/xddq/schema2typebox/pull/48
Summary
This adds support for unions that have an array or object in them, like in the schema below.
Other unions like
[string, null]
were already supported. Unions with arrays[array, null]
and objects[object, null]
were not. Tests covering these new cases are included.I'm making this change, because we have schemas with nullable arrays and objects. Without this change, those schemas cannot be parsed.
Fixes #43