Skip to content

Releases: astahmer/openapi-zod-client

[email protected]

31 Jul 18:49
Compare
Choose a tag to compare

Patch Changes

  • #294 ca81272 Thanks @QuentinJanuel! - Fix format validation for string items in arrays. Previously, format specifications (such as date-time) were ignored for array items, resulting in loose validation. This change ensures that the specified formats are now correctly applied to all string items within arrays.

[email protected]

18 Apr 08:00
Compare
Choose a tag to compare

Patch Changes

  • #288 3799ae3 Thanks @mjperrone! - Fix escaping of forward slash / in pattern regex so the output code will be /\//. This change also breaks escaping of unnecessarily escaped forward slash \/ in pattern regex, such that the output code will be /\\//.

[email protected]

13 Apr 21:20
Compare
Choose a tag to compare

Minor Changes

  • #275 ed50076 Thanks @senecolas! - Add withDocs option and --with-docs flag that adds JSDoc to generated code

[email protected]

11 Apr 14:42
Compare
Choose a tag to compare

Minor Changes

  • #283 3ec4915 Thanks @dgadelha! - Add schemaRefiner option to allow refining the OpenAPI schema before its converted to a Zod schema

[email protected]

03 Apr 15:46
Compare
Choose a tag to compare

Patch Changes

[email protected]

26 Mar 14:11
Compare
Choose a tag to compare

Patch Changes

[email protected]

25 Feb 17:49
Compare
Choose a tag to compare

Patch Changes

  • #271 197316b Thanks @codingmatty! - Fix invalid output when using array types as the endpoint body with minItems or maxItems and using the tag-file group-strategy.

[email protected]

25 Feb 08:35
Compare
Choose a tag to compare

Patch Changes

  • #270 04dd1b5 Thanks @codingmatty! - Fix bug with exportAllNamedSchemas option where schemas will reuse last schema name with matching schema rather than it's own name that has already been used before.

[email protected]

24 Feb 23:58
Compare
Choose a tag to compare

Minor Changes

  • #268 f62be48 Thanks @codingmatty! - Add exportAllNamedSchemas option to allow exporting duplicate schemas with different names.

[email protected]

09 Jan 09:19
Compare
Choose a tag to compare

Patch Changes

  • 73f6726 Thanks @astahmer! - Add a --strict-objects CLI flag: Use strict validation for objects so we don't allow unknown keys. Defaults to false. thanks @iceydee