Comments (3)
Hi @mayone-du
Thank you for the issue. This should be fixed. But we need time since it is a little difficult.
@NamesMT Can you also take a look if you have time?
from middleware.
I am also noticing the client type doesn't have the 400 response code without the third argument when using valibot.
from middleware.
Hi @yusukebe,
Currently MiddlewareHandler
's Input
s is not taken to account for the final TypedResponse
output in HandlerInterface
flow, as well as the Input
interface for middlewares does not have a way to pass status code along with it yet.
So, we need:
- A way for middlewares to pass along the status code in type,
- Taken account of all
Input['out']
for the final response, this could be done mainly atToSchema
level and/or theHandlerInterface
I think.
I don't have much time to work on it yet, I'll start a draft PR when I do.
from middleware.
Related Issues (20)
- hono-openapi expects `method` parameter to be of a specific type HOT 5
- Typia Openapi generator : feature request HOT 1
- Middleware breaks OpenAPI YAML
- Zod partial() function not available in the zod-openapi ? HOT 2
- Error with Hono, Swagger UI, and Zod OpenAPI Integration: Missing Parameter Data for Query Parameter with Refine and Transform HOT 7
- [BUG]: Zod OpenAPI RPC Mode not working with nullable query params HOT 2
- Testing with testClient from hono/test fails with 400 Bad Request on routes defined with @hono/zod-openapi
- OpenAPIHono can't use route to Hono
- @hono/zod-openapi: Error 404 when calling API route from unit test
- @hono/[email protected]: Response body object should not be disturbed or locked HOT 6
- @hono/zod-openapi: How to get tagName with path from OpenAPI without fetch json HOT 1
- Support for Hono + Zod OpenAPI with Problem Details (RFC 9457)
- @hono/zod-openapi: 0.14.2 Response body object should not be disturbed or locked
- Passing function as `zValidator` Middleware (accessing `c`)
- Unrecognized keys are sent in responses
- reopen #537
- Custom redirect uri for @hono/oauth-providers/google
- Typesript import failed
- Skip content-type header check with zodValidator when targeting json?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from middleware.