zod-openapi
Use Zod Schemas to create OpenAPI v3.x documentation
File Explorer
Download Latest Version (.zip)- config.json
- release.yml
- static.yml
- test.yml
- CODEOWNERS
- config.json
- dependabot.yml
- FUNDING.yml
- release.yml
- renovate.json5
- package.json
- api.md
- v5.md
- common.ts
- createJob.ts
- getJob.ts
- index.ts
- createSchema.ts
- openapi.yml
- redoc-static.html
- openapi-builder30.ts
- openapi-builder31.ts
- openapi-builder32.ts
- oas-common.ts
- openapi30.ts
- openapi31.ts
- openapi32.ts
- server.ts
- specification-extension.ts
- index.ts
- oas30.ts
- oas31.ts
- oas32.ts
- oas30.ts
- oas31.ts
- oas32.ts
- package.json
- tsconfig.json
- copyTypes.ts
- array.test.ts
- bigint.test.ts
- boolean.test.ts
- brand.test.ts
- catch.test.ts
- date.test.ts
- default.test.ts
- discriminatedUnion.test.ts
- enum.test.ts
- intersection.test.ts
- lazy.test.ts
- literal.test.ts
- manual.test.ts
- mini.test.ts
- nativeEnum.test.ts
- null.test.ts
- nullable.test.ts
- number.test.ts
- object.test.ts
- optional.test.ts
- pipeline.test.ts
- preprocess.test.ts
- readonly.test.ts
- record.test.ts
- refine.test.ts
- string.test.ts
- transform.test.ts
- tuple.test.ts
- undefined.test.ts
- union.test.ts
- unionMini.test.ts
- unknown.test.ts
- override.test.ts
- override.ts
- rename.test.ts
- rename.ts
- schema.ts
- callbacks.test.ts
- callbacks.ts
- components.test.ts
- components.ts
- content.test.ts
- content.ts
- document.test.ts
- document.ts
- examples.ts
- headers.test.ts
- headers.ts
- links.test.ts
- links.ts
- object.test.ts
- object.ts
- parameters.test.ts
- parameters.ts
- paths.test.ts
- paths.ts
- responses.test.ts
- responses.ts
- specificationExtension.test.ts
- specificationExtension.ts
- ctx.ts
- api.ts
- index.ts
- openapi.ts
- types.ts
- zod.ts
- .dockerignore
- .gitignore
- .nvmrc
- .prettierignore
- .prettierrc.js
- CHANGELOG.md
- eslint.config.js
- LICENSE
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- README.md
- tsconfig.json
- tsdown.config.mts
- vitest.config.ts
- zod-openapi.png
- zod-openapi.svg
๐ Installation Guide
1. Get the code
git clone https://github.com/samchungy/zod-openapi
Downloads the entire project code from GitHub to your computer.
cd zod-openapi
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm install zod zod-openapi
Downloads and installs the libraries listed in package.json.
yarn add zod zod-openapi
Type this command into your terminal and run it.
pnpm install zod zod-openapi
Downloads and installs the libraries listed in package.json.
pnpm
Downloads and installs the libraries listed in package.json.
pnpm build
Type this command into your terminal and run it.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
