fortanix / openapi-to-effect

Generate @effect/schema definitions from an OpenAPI document
Mozilla Public License 2.0
8 stars 1 forks source link

Add support for OpenAPI v3.1 'type' array syntax #5

Closed mkrause closed 5 days ago

mkrause commented 5 days ago

Resolves #4

mkrause commented 5 days ago

Currently this is always generating a Union when there's a type array (with 2+ elements). We could also consider special casing type: ['null', <T>] to generate S.NullOr.