hono-openapi 1.1.1 → 1.1.2
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.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -157,7 +157,7 @@ function removeExcludedPaths(paths, ctx) {
|
|
|
157
157
|
const schema = value[method];
|
|
158
158
|
if (schema == null) continue;
|
|
159
159
|
if (key.includes("{")) {
|
|
160
|
-
|
|
160
|
+
schema.parameters = schema.parameters ? [...schema.parameters] : [];
|
|
161
161
|
const pathParameters = key.split("/").filter(
|
|
162
162
|
(x) => x.startsWith("{") && !schema.parameters.find(
|
|
163
163
|
(params) => params.in === "path" && params.name === x.slice(1, x.length - 1)
|
package/dist/index.js
CHANGED
|
@@ -155,7 +155,7 @@ function removeExcludedPaths(paths, ctx) {
|
|
|
155
155
|
const schema = value[method];
|
|
156
156
|
if (schema == null) continue;
|
|
157
157
|
if (key.includes("{")) {
|
|
158
|
-
|
|
158
|
+
schema.parameters = schema.parameters ? [...schema.parameters] : [];
|
|
159
159
|
const pathParameters = key.split("/").filter(
|
|
160
160
|
(x) => x.startsWith("{") && !schema.parameters.find(
|
|
161
161
|
(params) => params.in === "path" && params.name === x.slice(1, x.length - 1)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono-openapi",
|
|
3
3
|
"description": "OpenAPI schema generator for Hono",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@hono/standard-validator": "^0.
|
|
44
|
+
"@hono/standard-validator": "^0.2.0",
|
|
45
45
|
"@standard-community/standard-json": "^0.3.5",
|
|
46
|
-
"@standard-community/standard-openapi": "^0.2.
|
|
46
|
+
"@standard-community/standard-openapi": "^0.2.9",
|
|
47
47
|
"@types/json-schema": "^7.0.15",
|
|
48
48
|
"hono": "^4.8.3",
|
|
49
49
|
"openapi-types": "^12.1.3"
|