@hono/zod-openapi 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -241,7 +241,7 @@ var createRoute = (routeConfig) => {
|
|
|
241
241
|
function addBasePathToDocument(document, basePath) {
|
|
242
242
|
const updatedPaths = {};
|
|
243
243
|
Object.keys(document.paths).forEach((path) => {
|
|
244
|
-
updatedPaths[(0, import_url.mergePath)(basePath, path)] = document.paths[path];
|
|
244
|
+
updatedPaths[(0, import_url.mergePath)(basePath.replaceAll(/:([^\/]+)/g, "{$1}"), path)] = document.paths[path];
|
|
245
245
|
});
|
|
246
246
|
return {
|
|
247
247
|
...document,
|
package/dist/index.mjs
CHANGED
|
@@ -219,7 +219,7 @@ extendZodWithOpenApi(z);
|
|
|
219
219
|
function addBasePathToDocument(document, basePath) {
|
|
220
220
|
const updatedPaths = {};
|
|
221
221
|
Object.keys(document.paths).forEach((path) => {
|
|
222
|
-
updatedPaths[mergePath(basePath, path)] = document.paths[path];
|
|
222
|
+
updatedPaths[mergePath(basePath.replaceAll(/:([^\/]+)/g, "{$1}"), path)] = document.paths[path];
|
|
223
223
|
});
|
|
224
224
|
return {
|
|
225
225
|
...document,
|