Closed adrianisk closed 9 months ago
@adrianisk checking in here
Heyo, wrapping up a project that needs to get done today, then I'll take a look at this!
Edit: or first thing tomorrow 😪
@adrianisk I've merged your PR and made the remaining tweaks here:
https://github.com/recap-build/recap/pull/426
Note that my PR results in a subtle change to the way null
JSON schema types are handled. See the PR for details.
Released in 0.12.0:
Summary
Fixes https://github.com/recap-build/recap/issues/412
Updates to handle the case where a
type
in JSON schema is an array of strings, like{"type": ["null", "string", "boolean", "number"]}
. From the JSON schema docsDetails
I added tests to make sure nullable/optional types are converted correctly, and that properties of an object that are both not required & a union with null (
{"type": ["null", "string"]}
) are not made "double nullable".