New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hono/zod-openapi

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hono/zod-openapi - npm Package Compare versions

Comparing version 0.9.3 to 0.9.4

6

dist/index.d.ts

@@ -5,6 +5,6 @@ import * as openapi3_ts_oas31 from 'openapi3-ts/oas31';

import { OpenAPIObjectConfig } from '@asteasolutions/zod-to-openapi/dist/v3.0/openapi-generator';
import { Env, Input, Handler, Context, Schema, Hono, ToSchema, TypedResponse } from 'hono';
import { Env, Context, TypedResponse, Input, Handler, Schema, Hono, ToSchema } from 'hono';
import { MergeSchemaPath, MergePath } from 'hono/types';
import { RemoveBlankRecord } from 'hono/utils/types';
import { AnyZodObject, z, ZodSchema, ZodError, ZodType } from 'zod';
import { ZodError, AnyZodObject, z, ZodSchema, ZodType } from 'zod';
export { z } from 'zod';

@@ -104,2 +104,2 @@

export { OpenAPIHono, OpenAPIHonoOptions, OpenAPIObjectConfigure, RouteHandler, RouteHook, createRoute };
export { type Hook, OpenAPIHono, type OpenAPIHonoOptions, type OpenAPIObjectConfigure, type RouteHandler, type RouteHook, createRoute };
{
"name": "@hono/zod-openapi",
"version": "0.9.3",
"version": "0.9.4",
"description": "A wrapper class of Hono which supports OpenAPI.",

@@ -30,3 +30,2 @@ "main": "dist/index.js",

"license": "MIT",
"private": false,
"publishConfig": {

@@ -46,4 +45,6 @@ "registry": "https://registry.npmjs.org",

"devDependencies": {
"@hono/zod-validator": "^0.1.11",
"hono": "^3.11.3",
"hono": "^3.11.7",
"jest": "^29.7.0",
"openapi3-ts": "^4.1.2",
"tsup": "^8.0.1",
"vitest": "^1.0.1",

@@ -54,3 +55,3 @@ "zod": "^3.22.1"

"@asteasolutions/zod-to-openapi": "^5.5.0",
"@hono/zod-validator": "^0.1.9"
"@hono/zod-validator": "^0.1.11"
},

@@ -60,2 +61,2 @@ "engines": {

}
}
}

@@ -54,2 +54,6 @@ # Zod OpenAPI Hono

> [!TIP]
> `UserSchema` schema will be registered as `"#/components/schemas/User"` refs in the OpenAPI document.
> If you want to register the schema as referenced components, use `.opanapi()` method.
Next, create a route:

@@ -56,0 +60,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc