RobinMeow / CommunityCookbook

CommunityCookbook
MIT License
0 stars 0 forks source link

rework server validations #76

Open RobinMeow opened 7 months ago

RobinMeow commented 7 months ago

server should use hand written validations, because the dataannotations dont work well for required value types, as they are initialized to their default value, before the validations is checked.

causing a required int to be set to zero, and pass validation when the client didnt even set the field.