Dust can validate one model inside another. Add @Validate(nested: true) to the parent field. If Address.zipCode fails, the parent returns address.zipCode, so the error still points to the exact field.
Read the Dust nested validation guide.
Dust can validate one model inside another. Add @Validate(nested: true) to the parent field. If Address.zipCode fails, the parent returns address.zipCode, so the error still points to the exact field.
Read the Dust nested validation guide.
Top comments (0)