@hono/zod-openapi
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -151,3 +151,3 @@ "use strict"; | ||
basePath(path) { | ||
return new _OpenAPIHono(super.basePath(path)); | ||
return new _OpenAPIHono({ ...super.basePath(path), defaultHook: this.defaultHook }); | ||
} | ||
@@ -154,0 +154,0 @@ }; |
{ | ||
"name": "@hono/zod-openapi", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "A wrapper class of Hono which supports OpenAPI.", | ||
@@ -44,2 +44,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@cloudflare/workers-types": "^4.20240117.0", | ||
"hono": "^3.11.7", | ||
@@ -49,2 +50,3 @@ "jest": "^29.7.0", | ||
"tsup": "^8.0.1", | ||
"typescript": "^5.3.3", | ||
"vitest": "^1.0.1", | ||
@@ -55,3 +57,3 @@ "zod": "^3.22.1" | ||
"@asteasolutions/zod-to-openapi": "^5.5.0", | ||
"@hono/zod-validator": "^0.1.11" | ||
"@hono/zod-validator": "0.1.11" | ||
}, | ||
@@ -58,0 +60,0 @@ "engines": { |
@@ -56,3 +56,3 @@ # Zod OpenAPI Hono | ||
> `UserSchema` schema will be registered as `"#/components/schemas/User"` refs in the OpenAPI document. | ||
> If you want to register the schema as referenced components, use `.opanapi()` method. | ||
> If you want to register the schema as referenced components, use `.openapi()` method. | ||
@@ -59,0 +59,0 @@ Next, create a route: |
Sorry, the diff of this file is not supported yet
35516
8
Updated@hono/zod-validator@0.1.11