You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining a requestBody, the models for the generated server stubs do not enforce the required attribute for properties. When I tried it out, it didn't work for the go-server and go-gin-server generators.
I'm not too familiar with Go, but failure expected? I would think we would want a more strict validator. If this is not expected behavior, I can try to help out and open up a PR.
The text was updated successfully, but these errors were encountered:
When defining a
requestBody
, the models for the generated server stubs do not enforce the required attribute for properties. When I tried it out, it didn't work for thego-server
andgo-gin-server
generators.ie:
I took a look at the model.mustache file and it looks like the properties field are missing the
binding:"required"
within the structs.The line in the go-gin-server model.mustache file:
What I think the expected line should be:
I'm not too familiar with Go, but failure expected? I would think we would want a more strict validator. If this is not expected behavior, I can try to help out and open up a PR.
The text was updated successfully, but these errors were encountered: