A dedicated validation layer should be present on API ingress. Technically, this could be done by adding specific tags to the JSON annotations, but this will be bound to the HTTP framework used, so it is not really a practical option. Dedicated validators might be the better solution here.
Validation should also use the (already existing) ErrValidation sentinel error.
A dedicated validation layer should be present on API ingress. Technically, this could be done by adding specific tags to the JSON annotations, but this will be bound to the HTTP framework used, so it is not really a practical option. Dedicated validators might be the better solution here.
Validation should also use the (already existing)
ErrValidationsentinel error.