@nxgt/openapi-hono 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +4 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -83,7 +83,10 @@ routes.operation('deleteEmployee', auth, async (c) => {
83
83
 
84
84
  By default, a request the spec refuses gets a 400 response. Its body is
85
85
  `{ status, message: 'errors.validation-failed', timestamp, issues }`, and
86
- each issue is `{ target, path, code, message }`. To answer differently:
86
+ each issue is `{ target, path, code, message }`. `@nxgt/openapi-codegen`
87
+ declares it, as `ValidationErrorBody`, on every operation that takes an
88
+ input, so a client that checks its replies reads it. To answer differently,
89
+ generate with `validationErrors: false` and declare your own body:
87
90
 
88
91
  ```ts
89
92
  const routes = createRoutes(app, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/openapi-hono",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",