Hi,
In Gin, we use ShouldBindJSON
and ShouldBindQuery
to deserialize and validate the request body/query parameters.
Is that any way in Gin to say that I want to disallow any body/query parameters (keys) that are not defined on my body/query model?