Skip to content

Releases: rhinobase/hono-openapi

v0.4.4

29 Jan 13:13
Compare
Choose a tag to compare

Fixes

  • Update exports in index.ts to include utils (e0496d6)
  • Enhance HTTPException handling and update validateResponse type (02562ed)
  • Add jsdocs for uniqueSymbol and generateValidatorDocs (7451f38)

Full Changelog: https://github.com/rhinobase/hono-openapi/compare/[email protected]@0.4.4

[email protected]

20 Jan 06:16
Compare
Choose a tag to compare

What's Changed

  • feat(core): Add the cause of validation error to HTTPException by @Matsuuu in #48

Fixes

  • core: minor type corrections (9cea732)
  • core: clone response before reading data for validation (7bc444a)

New Contributors

v0.4.0

14 Jan 20:36
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/rhinobase/hono-openapi/compare/[email protected]@0.4.0

v0.3.1

24 Dec 12:16
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/rhinobase/hono-openapi/compare/[email protected]@0.3.1

[email protected]

21 Dec 06:43
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/rhinobase/hono-openapi/compare/[email protected]@0.3.0

v0.2.1

03 Dec 02:06
Compare
Choose a tag to compare

🩹 Fixes

  • core: resolved json to openapi conversion issue (8e7407a)
  • core: parameter was not getting marked required (0958652), closed #8

[email protected]

02 Dec 12:21
Compare
Choose a tag to compare

What's Changed

  • Expanded validator support Valibot, ArkType, and TypeBox
  • Added response validation and hide routes functionality
  • bug fixes & performance improvements

v0.1.4

07 Nov 12:57
Compare
Choose a tag to compare

🎉 Initial Release: Hono OpenAPI v0.1.4

I am excited to launch Hono OpenAPI! 🚀

This library generates OpenAPI specs automatically for your Hono apps using validation schemas, enabling you to create client libraries, documentation, and more—no extra hassle!

Key Features:

  • Automatic OpenAPI generation with Zod (TypeBox and Valibot coming soon!)
  • Easy setup for seamless Hono integration
  • Compatible with Swagger UI and Scalar for documentation

Installation:

pnpm add hono-openapi

Quick Example:

import { Hono } from "hono";
import { describeRoute, openAPISpecs } from "hono-openapi";

const app = new Hono();

app.get("/", describeRoute({ description: "Say hello" }), (c) => c.text("Hello, Hono!"));

We’re just getting started—check it out, and let us know what you think! 🎉