(subBlockId: string, value: unknown)
| 472 | * @returns Normalized value |
| 473 | */ |
| 474 | export function normalizeSubBlockValue(subBlockId: string, value: unknown): unknown { |
| 475 | let normalizedValue = value ?? null |
| 476 | |
| 477 | if (subBlockId === 'tools' && Array.isArray(normalizedValue)) { |
| 478 | normalizedValue = sanitizeTools(normalizedValue) |
| 479 | } |
| 480 | if (subBlockId === 'inputFormat' && Array.isArray(normalizedValue)) { |
| 481 | normalizedValue = sanitizeInputFormat(normalizedValue) |
| 482 | } |
| 483 | |
| 484 | return normalizedValue |
| 485 | } |
| 486 | |
| 487 | /** |
| 488 | * Extracts subBlock fields for comparison, excluding diff markers. |
no test coverage detected