Inline json attribute seems to be ignored.
For example:
type A struct{
Value int `json:"value"`
}
type B struct{
A A `json:",inline"`
Value int `json:"value"`
}
// @BasePath /api/v1
// PingExample godoc
// @Summary ping example
// @Schemes
// @Description do ping
// @Tags example
// @Accept json
// @Produce json
// @Success 200 {object} B
// @Router /example/helloworld [get]
func Helloworld(g *gin.Context) {
g.JSON(http.StatusOK,"helloworld")
}
generates:
Is it intended or is there another attribute I have to use?
Hi,
Inline json attribute seems to be ignored. For example:
generates:![image](https://github.com/swaggo/gin-swagger/assets/40688874/dd93ab2f-e7a5-4164-9d35-6ed24a70abe7)
Is it intended or is there another attribute I have to use?