@cllns the first thing I noticed was that the validation happens at http layer, but I'm not sure about this decision, because I think it can became complex when you need to mix with other type of validations (eg. uniqueness) and give feedback to user. So I think moving the validations to operations layer could make sense, but I'm could not integrate operation with validation contract, so I had to create a inner Contract class.
=> More informations about this toot | View the thread | More toots from ste@ruby.social
=> View cllns@ruby.social profile
text/gemini
This content has been proxied by September (3851b).