@hono/zod-openapi
Advanced tools
Comparing version 0.16.2 to 0.16.3
@@ -5,3 +5,3 @@ import * as openapi3_ts_oas31 from 'openapi3-ts/oas31'; | ||
export { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi'; | ||
import { MiddlewareHandler, TypedResponse, Env, Context, Input, Handler, Schema, Hono, ToSchema, ValidationTargets } from 'hono'; | ||
import { MiddlewareHandler, TypedResponse, Env, ValidationTargets, Context, Input, Handler, Schema, Hono, ToSchema } from 'hono'; | ||
import { MergePath, MergeSchemaPath } from 'hono/types'; | ||
@@ -76,2 +76,4 @@ import { JSONParsed, RemoveBlankRecord } from 'hono/utils/types'; | ||
type Hook<T, E extends Env, P extends string, R> = (result: { | ||
target: keyof ValidationTargets; | ||
} & ({ | ||
success: true; | ||
@@ -82,3 +84,3 @@ data: T; | ||
error: ZodError; | ||
}, c: Context<E, P>) => R; | ||
}), c: Context<E, P>) => R; | ||
type ConvertPathType<T extends string> = T extends `${infer Start}/{${infer Param}}${infer Rest}` ? `${Start}/:${Param}${ConvertPathType<Rest>}` : T; | ||
@@ -85,0 +87,0 @@ type OpenAPIHonoOptions<E extends Env> = { |
{ | ||
"name": "@hono/zod-openapi", | ||
"version": "0.16.2", | ||
"version": "0.16.3", | ||
"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
46725
648