Golang mongo validation omitempty

前端 未结 0 1557
情话喂你
情话喂你 2020-12-06 13:10

I am trying to validate an object that I am sending via JSON.

I want to not validate the fields if they are not sent, only if they are present in the JSON request.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题