@asteasolutions/zod-to-openapi
Advanced tools
Comparing version
{ | ||
"name": "@asteasolutions/zod-to-openapi", | ||
"version": "7.3.2", | ||
"version": "7.3.3", | ||
"description": "Builds OpenAPI schemas from Zod schemas", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
@@ -6,2 +6,5 @@ # Zod to OpenAPI | ||
> [!IMPORTANT] | ||
> **For Zod v4 support, please use version 8.0.0-beta!** Install with: `npm install @asteasolutions/zod-to-openapi@beta` | ||
A library that uses [zod schemas](https://github.com/colinhacks/zod) to generate an Open API Swagger documentation. | ||
@@ -135,3 +138,3 @@ | ||
import { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi'; | ||
import { z } from 'zod'; | ||
import { z } from 'zod/v4'; | ||
@@ -150,3 +153,3 @@ extendZodWithOpenApi(z); | ||
import { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi'; | ||
import { z } from 'zod'; | ||
import { z } from 'zod/v4'; | ||
@@ -165,3 +168,3 @@ extendZodWithOpenApi(z); | ||
import { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi'; | ||
import { z } from 'zod'; | ||
import { z } from 'zod/v4'; | ||
@@ -168,0 +171,0 @@ extendZodWithOpenApi(z); |
170965
0.09%598
0.5%