-
based on https://github.com/golang/go/discussions/63397 (encoding/json/v2) and https://github.com/gin-gonic/gin/pull/3391, we uses json/v2, not support third json but open interface and middleware.
-
I'm using a gin router and passing a middlewarefunc to `RegisterHandlersWithOptions`. One middleware func is a `OapiRequestValidatorWithOptions`. That function does not exit properly. If the request f…
-
## Description
When I use ctx.ShouldBindJSON(&body), it quietly close request without any response. Other requests with same method works normally.
## How to reproduce
Model:
```golang
type…
-
when implementing use otel tracing like this
![image](https://github.com/gin-gonic/gin/assets/32633442/dc232282-87a1-4c3b-aaf3-2e2e69d2cf2b)
and apply to router like "router.POST("/v4/*xxxx", ga…
-
The docs say that examples using `next` should be present in this repo (https://pkg.go.dev/github.com/gin-gonic/gin#Context.Next). I'm a bit confused on the lifecycle of middleware. For example, say w…
-
-
I originally posted this on Stack Overflow without any feedback. I am now convinced this is a bug, or odd behaviour that should be documented in the readme.
I'm new to Gin and Gin sessions, and I…
-
-
Hi,
I'm using Gin with OapiRequestValidator, but it seems that the middleware does not handle invalid request data. Did i miss something?
A tiny example:
```
import(
"net/http"
middlewar…
-
Using oapi-codegen v1.11.0 to generate the server stub for the below spec
```
~/go/bin/oapi-codegen -package main -generate gin,types,spec -old-config-style schema.yaml > server.gen.go
```
```…