Releases: astahmer/openapi-zod-client
[email protected]
Minor Changes
-
#163
0270e4c
Thanks @WickyNilliams! - treat additionalProperties as defaulting to true, allowing passthrough() unless explicitly opting-out -
#174
b12151d
Thanks @imballinst! - feat: add endpointDefinitionRefiner to TemplateContext options
[email protected]
[email protected]
Patch Changes
-
#160
bdcc143
Thanks @WickyNilliams! - add missing zod chains to response bodies -
#161
5d98868
Thanks @WickyNilliams! - allow timezones in date-time strings
[email protected]
Patch Changes
-
#154
2486ce5
Thanks @janwvjaarsveld! - Fix issue where path parameters containing underscores were also converted to camelCase -
#151
2ef2cb1
Thanks @WickyNilliams! - improve types for anyOf, to closer match json-schema behavior
[email protected]
Minor Changes
Patch Changes
-
#140
6e5605b
Thanks @janwvjaarsveld! - Handle hyphenated path parameters on endpoint definition -
#149
d165193
Thanks @feychenie! - Fix TS generation of [any|one|all]Of when used with refs
[email protected]
Patch Changes
- #137
d6091c9
Thanks @jmiller14! - fix extraneous semicolon after discriminated union
[email protected]
[email protected]
Patch Changes
-
#119
d340a17
Thanks @robert-wysocki-sparkbit! - Fix handling patterns with forward slashes -
#113
a4607b0
Thanks @robert-wysocki-sparkbit! - Fix handling "exclusiveMinimum: false"
[email protected]
Patch Changes
- #106
9594450
Thanks @dominik-parkopedia! - Make use of discriminated unions if oneOf discriminator is defined
[email protected]
Minor Changes
-
#98
3e2406d
Thanks @sirtimbly! - ## Feature: Support for Datetime string formatWarning
Upgrade your zod package to version >= 3.2.0Because zod now supports validating strings as proper ISO datetimes with
.datetime()
since Zod 3.2.0, and 'date-time' is one of the supported stringformat
values in the OpenAPI and JSON Schema spec. Any string with that datetime format will now be validated as being a ISO UTC datetime string.Fixed: Minimum 0 and MinLength 0
Minimum 0 and MinLength 0 were not being converted to
.gte()
and.min()
because of a type coercion bug.