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
JSON schema verification should be performed on the original data submitted by the user, not the data after binding structures
The usual practice in Go is to bind the request body to a structure for subsequent processing of the request body.
This will cause a problem, that is, if there is no corresponding value in the request body for the fields defined in the structure,
the bound object will automatically be assigned a value of zero.
At this time, there may be problems with json schema verification.
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
JSON schema verification should be performed on the original data submitted by the user, not the data after binding structures
The usual practice in Go is to bind the request body to a structure for subsequent processing of the request body.
This will cause a problem, that is, if there is no corresponding value in the request body for the fields defined in the structure,
the bound object will automatically be assigned a value of zero.
At this time, there may be problems with json schema verification.
The text was updated successfully, but these errors were encountered: