Back to results
speakeasy-api/speakeasy-zod-openapi(opens in a new tab)
Language: Python
Speakeasy Zod OpenAPI Example
- stars
- 5
- watchers
- 9
- forks
- 3
- open issues
- 0
- Last updated
- 08/05/2025
Language: Python
Speakeasy Zod OpenAPI Example
This example Zod schema demonstrates Speakeasy-recommended practices for generating clear OpenAPI specifications optimised for creating production ready client libraries. For the associated tutorial please see our docsite.
To install and run this example, you'll need to clone the repository and install the required node modules:
git clone git@github.com:ritza-co/speakeasy-zod-openapi.git
npm install
To save OpenAPI output to a file and regenerate the SDK with Speakeasy, first install Speakeasy by following the Speakeasy Getting Started guide.
On macOS, you can install Speakeasy using Homebrew.
In your terminal, run:
brew install speakeasy-api/homebrew-tap/speakeasy
In the project's directory, run:
npm run gen-openapi && npm run gen-sdk