← All field notes

Dust field note

Keep Nested Validation on the Full Path

Dust nested validation with an address.zipCode error path

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 #Validation #CodeGeneration