@hono/zod-openapi
Advanced tools
Comparing version 0.9.4 to 0.9.5
@@ -108,2 +108,3 @@ "use strict"; | ||
route(path, app) { | ||
const pathForOpenAPI = path.replaceAll(/:([^\/]+)/g, "{$1}"); | ||
super.route(path, app); | ||
@@ -120,3 +121,3 @@ if (!(app instanceof _OpenAPIHono)) { | ||
...def.route, | ||
path: (0, import_url.mergePath)(path, def.route.path) | ||
path: (0, import_url.mergePath)(pathForOpenAPI, def.route.path) | ||
}); | ||
@@ -126,3 +127,3 @@ case "webhook": | ||
...def.webhook, | ||
path: (0, import_url.mergePath)(path, def.webhook.path) | ||
path: (0, import_url.mergePath)(pathForOpenAPI, def.webhook.path) | ||
}); | ||
@@ -129,0 +130,0 @@ case "schema": |
{ | ||
"name": "@hono/zod-openapi", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "A wrapper class of Hono which supports OpenAPI.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35081
401