Speakeasy Logo
Skip to Content

Model validation and serialization

Speakeasy TypeScript SDKs support model validation and serialization backed by Zod. This feature enables validation of data against models and easy serialization or deserialization of data to and from JSON.

Example

As an example, consider the following model definition:

From JSON

To JSON

Last updated on