zod-openapi-share 0.0.7 → 0.0.8
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 +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|

|
|
7
7
|

|
|
8
8
|
[](https://www.npmjs.com/package/zod-openapi-share)
|
|
9
|
+
[](https://www.npmjs.com/package/zod-openapi-share)
|
|
9
10
|

|
|
10
11
|

|
|
11
12
|

|
|
@@ -32,6 +33,9 @@ When using it, you’ll need three packages together: `hono`, `@hono/zod-openapi
|
|
|
32
33
|
By unifying response definitions, you can develop without worrying about unintended inconsistencies between endpoints.
|
|
33
34
|
If you’re using hono and @hono/zod-openapi, be sure to try `zod-openapi-share`!
|
|
34
35
|
|
|
36
|
+
<details>
|
|
37
|
+
<summary>before (`hono` + `@hono/zod-openapi`)</summary>
|
|
38
|
+
|
|
35
39
|
### before (`hono` + `@hono/zod-openapi`)
|
|
36
40
|
|
|
37
41
|
```typescript
|
|
@@ -143,6 +147,10 @@ const rootPostRoute = createRoute({
|
|
|
143
147
|
});
|
|
144
148
|
|
|
145
149
|
```
|
|
150
|
+
</details>
|
|
151
|
+
|
|
152
|
+
<details>
|
|
153
|
+
<summary>after (`hono` + `@hono/zod-openapi` + `zod-openapi-share`)</summary>
|
|
146
154
|
|
|
147
155
|
### after (`hono` + `@hono/zod-openapi` + `zod-openapi-share`)
|
|
148
156
|
|
|
@@ -252,6 +260,7 @@ const rootPostRoute = route.createSchema(
|
|
|
252
260
|
[400, 500]
|
|
253
261
|
);
|
|
254
262
|
```
|
|
263
|
+
</details>
|
|
255
264
|
|
|
256
265
|
## How to Use
|
|
257
266
|
|