(value any)
| 261 | } |
| 262 | |
| 263 | func parseNormalizedStringArrayStrict(value any) ([]string, bool) { |
| 264 | arr, ok := value.([]any) |
| 265 | if !ok { |
| 266 | return nil, false |
| 267 | } |
| 268 | result := make([]string, 0, len(arr)) |
| 269 | for _, item := range arr { |
| 270 | s, ok := item.(string) |
| 271 | if !ok { |
| 272 | return nil, false |
| 273 | } |
| 274 | if normalized := normalizePackageName(s); normalized != "" { |
| 275 | result = append(result, normalized) |
| 276 | } |
| 277 | } |
| 278 | return result, true |
| 279 | } |
| 280 | |
| 281 | func parseNormalizedStringMapStrict(value any) (map[string]string, bool) { |
| 282 | result := map[string]string{} |
no test coverage detected