Skip to content

Releases: techery/zod-to-vertex-schema

0.1.4

29 Jan 15:00
Compare
Choose a tag to compare

Full Changelog: 0.1.3...0.1.4

0.1.3

14 Jan 17:51
Compare
Choose a tag to compare

Full Changelog: 0.1.2...0.1.3

Update library imports

13 Jan 13:55
Compare
Choose a tag to compare

Add missing import for zodDynamicEnum

Fix metadata

13 Jan 13:29
Compare
Choose a tag to compare

Fix readme and metadata

Initial version

13 Jan 13:26
Compare
Choose a tag to compare

Initial release of zod-to-vertex-schema, a TypeScript library that converts Zod schemas to Vertex AI/Gemini compatible schemas. This library helps you define your Vertex AI/Gemini function parameters using Zod's powerful schema definition system.

Features

Type Support

  • Basic Types: String (with date/datetime), Number (int/float), Boolean
  • Complex Types: Arrays, Objects, Enums, Unions, Discriminated Unions
  • Modifiers: Optional fields, Nullable fields, Number constraints
  • Metadata: Property ordering preservation, Description preservation