(ctx *ValidationContext, icons []model.Icon)
| 235 | } |
| 236 | |
| 237 | func validateIcons(ctx *ValidationContext, icons []model.Icon) *ValidationResult { |
| 238 | result := &ValidationResult{Valid: true, Issues: []ValidationIssue{}} |
| 239 | |
| 240 | // Skip validation if no icons are provided (optional field) |
| 241 | if len(icons) == 0 { |
| 242 | return result |
| 243 | } |
| 244 | |
| 245 | // Validate each icon |
| 246 | for i, icon := range icons { |
| 247 | iconResult := validateIcon(ctx.Index(i), &icon) |
| 248 | result.Merge(iconResult) |
| 249 | } |
| 250 | |
| 251 | return result |
| 252 | } |
| 253 | |
| 254 | func validateIcon(ctx *ValidationContext, icon *model.Icon) *ValidationResult { |
| 255 | result := &ValidationResult{Valid: true, Issues: []ValidationIssue{}} |
no test coverage detected
searching dependent graphs…