Address
A Turkish address form backed by the embedded province and district dataset. The rules check that the province exists, that the district belongs to it, and that the postal code starts with the province's plate code. Province and district names are matched ignoring case and accents.
turkiye
1. Province
Rules on this form
rule.Field(&f.Province, rule.Required, turkiye.Province{})
rule.Field(&f.District, rule.Required, turkiye.DistrictOf{ProvinceField: "province"})
rule.Field(&f.PostalCode, rule.Required, turkiye.PostalCode{ProvinceField: "province"})
rule.Field(&f.Plate, turkiye.PlateCode{})