feat: Detect type conflicts when adding intermediate fields - #2671
feat: Detect type conflicts when adding intermediate fields#2671taylor-swanson wants to merge 2 commits into
Conversation
- When loading schemas, the scripts can now detect situations where either an intermediate field overwrites another field of a different type, or when a leaf field overwrites an intermediate field.
🤖 GitHub commentsJust comment with:
|
ECS PR Triage (automated)PR Triage ReportPR: #2671 — feat: Detect type conflicts when adding intermediate fields SummaryThis PR adds type-conflict detection to the schema loader tooling ( Files changed
Routing decisionAll changes are confined to Risk notes
Completeness checklist
Recommended next actions
Posted by PR Triage workflow |
| field_details.setdefault('name', '.'.join(parent_fields[:idx + 1])) | ||
| field_details.setdefault('intermediate', True) | ||
| else: | ||
| msg = f"Type conflict detected when adding intermediate field '{level}' (adding: object, existing: {field_details['type']})" |
There was a problem hiding this comment.
so this basically triggers when 'type' in field_details but type is not object?
1. What does this PR do?
2. Which ECS fields are affected/introduced?
3. Why is this change necessary?
4. Have you added/updated documentation?
5. Have you built ECS and committed any newly generated files?
6. Have you run the ECS validation tests locally?
7. Anything else for the reviewers?
Commit Message
Related