zod-openapi-share 0.0.4 → 0.0.6
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/README.md +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|

|
|
12
12
|
[](#)
|
|
13
13
|
|
|
14
|
-
`zod-openapi-share` is an extension for `@hono/zod-openapi` that lets you centralize and reuse response definitions across endpoints.
|
|
14
|
+
`zod-openapi-share` is an extension package for `@hono/zod-openapi` that lets you centralize and reuse response definitions across endpoints.
|
|
15
15
|
Normally, `@hono/zod-openapi` requires you to redefine the same responses (e.g., error schemas) for every endpoint, but with `zod-openapi-share`, you can avoid repetition and prevent definition drift, making your backend development using `hono` + `@hono/zod-openapi` cleaner and more consistent.
|
|
16
16
|
|
|
17
17
|
> [!IMPORTANT]
|
|
@@ -423,7 +423,7 @@ export const api = () => {
|
|
|
423
423
|
|
|
424
424
|
// OpenAPI Document Endpoint
|
|
425
425
|
app.doc('/openapi', {
|
|
426
|
-
openapi: '3.
|
|
426
|
+
openapi: '3.1.0',
|
|
427
427
|
info: {
|
|
428
428
|
title: 'Echo API',
|
|
429
429
|
version: '1.0.0',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zod-openapi-share",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "This package is an extension for @hono/zod-openapi.",
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"description": "This package is an extension package for @hono/zod-openapi.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"@hono/zod-openapi",
|
|
7
7
|
"hono",
|