@hono/zod-openapi 0.17.1 → 0.18.0

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.d.mts CHANGED
@@ -27,9 +27,9 @@ type HasUndefined<T> = undefined extends T ? true : false;
27
27
  type InputTypeBase<R extends RouteConfig, Part extends string, Type extends keyof ValidationTargets> = R['request'] extends RequestTypes ? RequestPart<R, Part> extends ZodType ? {
28
28
  in: {
29
29
  [K in Type]: HasUndefined<ValidationTargets[K]> extends true ? {
30
- [K2 in keyof z.input<RequestPart<R, Part>>]?: ValidationTargets[K][K2];
30
+ [K2 in keyof z.input<RequestPart<R, Part>>]?: z.input<RequestPart<R, Part>>[K2];
31
31
  } : {
32
- [K2 in keyof z.input<RequestPart<R, Part>>]: ValidationTargets[K][K2];
32
+ [K2 in keyof z.input<RequestPart<R, Part>>]: z.input<RequestPart<R, Part>>[K2];
33
33
  };
34
34
  };
35
35
  out: {
package/dist/index.d.ts CHANGED
@@ -27,9 +27,9 @@ type HasUndefined<T> = undefined extends T ? true : false;
27
27
  type InputTypeBase<R extends RouteConfig, Part extends string, Type extends keyof ValidationTargets> = R['request'] extends RequestTypes ? RequestPart<R, Part> extends ZodType ? {
28
28
  in: {
29
29
  [K in Type]: HasUndefined<ValidationTargets[K]> extends true ? {
30
- [K2 in keyof z.input<RequestPart<R, Part>>]?: ValidationTargets[K][K2];
30
+ [K2 in keyof z.input<RequestPart<R, Part>>]?: z.input<RequestPart<R, Part>>[K2];
31
31
  } : {
32
- [K2 in keyof z.input<RequestPart<R, Part>>]: ValidationTargets[K][K2];
32
+ [K2 in keyof z.input<RequestPart<R, Part>>]: z.input<RequestPart<R, Part>>[K2];
33
33
  };
34
34
  };
35
35
  out: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hono/zod-openapi",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "description": "A wrapper class of Hono which supports OpenAPI.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@cloudflare/workers-types": "^4.20240117.0",
45
- "hono": "^4.5.4",
45
+ "hono": "^4.6.10",
46
46
  "jest": "^29.7.0",
47
47
  "tsup": "^8.0.1",
48
48
  "typescript": "^5.4.4",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@asteasolutions/zod-to-openapi": "^7.1.0",
55
- "@hono/zod-validator": "0.3.0"
55
+ "@hono/zod-validator": "^0.4.1"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=16.0.0"