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
With the move to Golang and the new server implementation, the current validation doesn't work perfectly well. One example of a pitfall with the current validation is that for "zero" values. For example, if you want to update a members paid status to false, if you were to specify this in the request as false the required validation tag will fail. We want something to ensure that the field is present in the request.
Approach
Change all required fields with allowed zero values to be pointers with the required tag
Related To
Blocked By
Blocks
The text was updated successfully, but these errors were encountered:
Description
With the move to Golang and the new server implementation, the current validation doesn't work perfectly well. One example of a pitfall with the current validation is that for "zero" values. For example, if you want to update a members paid status to
false
, if you were to specify this in the request asfalse
therequired
validation tag will fail. We want something to ensure that the field is present in the request.Approach
required
tagRelated To
Blocked By
Blocks
The text was updated successfully, but these errors were encountered: