uwpokerclub / developer-hub

0 stars 1 forks source link

API Golang Rewrite | Validation errors when creating memberships #175

Closed asmahood closed 2 years ago

asmahood commented 2 years ago

Description

When attempting to create a new membership using the request below, the server sends back a validation error saying that the discount field is required. This is due to the fact that it will treat "zero" values as the field being empty, so we want to omit the validation in these cases

{
  "userId": "...",
  "semesterId": "...",
  "paid": true,
  "discounted": false
}

QA Steps