func (m *TaskCard) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil } iTagsSize := int64(len(m.Tags)) if err := validate.MaxItems("tags", "body", iTagsSize, 5); err != nil { return err } if err := validate.UniqueItems("tags", "body", m.Tags); err != nil { return err } for i := 0; i < len(m.Tags); i++ { if err := validate.MinLength("tags"+"."+strconv.Itoa(i), "body", string(m.Tags[i]), 3); err != nil { return err } if err := validate.Pattern("tags"+"."+strconv.Itoa(i), "body", string(m.Tags[i]), `\w[\w- ]+`); err != nil { return err } } return nil }
func (o *ListTasksParams) validateTags(formats strfmt.Registry) error { if err := validate.UniqueItems("tags", "query", o.Tags); err != nil { return err } return nil }
func (m *ShipmentDto) validateSplitStatuse(formats strfmt.Registry) error { if swag.IsZero(m.SplitStatuse) { // not required return nil } if err := validate.UniqueItems("splitStatuse", "body", m.SplitStatuse); err != nil { return err } return nil }
func (m *ShipmentDto) validateAdditionalService(formats strfmt.Registry) error { if swag.IsZero(m.AdditionalService) { // not required return nil } if err := validate.UniqueItems("additionalService", "body", m.AdditionalService); err != nil { return err } return nil }
func (m *ServicePointDto) validateOpeningHour(formats strfmt.Registry) error { if swag.IsZero(m.OpeningHour) { // not required return nil } if err := validate.UniqueItems("openingHour", "body", m.OpeningHour); err != nil { return err } return nil }
func (m *AreaOfNotificationDto) validatePostalCodes(formats strfmt.Registry) error { if swag.IsZero(m.PostalCodes) { // not required return nil } if err := validate.UniqueItems("postalCodes", "body", m.PostalCodes); err != nil { return err } return nil }
func (m *RepositoryBuildRequest) validateDockerTags(formats strfmt.Registry) error { if swag.IsZero(m.DockerTags) { // not required return nil } iDockerTagsSize := int64(len(m.DockerTags)) if err := validate.MinItems("docker_tags", "body", iDockerTagsSize, 1); err != nil { return err } if err := validate.UniqueItems("docker_tags", "body", m.DockerTags); err != nil { return err } return nil }