@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.
- package/README.md +4 -1
- 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 }`.
|
|
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, {
|