Skip to content

Conversation

@bctiemann
Copy link
Contributor

@bctiemann bctiemann commented Nov 4, 2025

Fixes: #237

Makes circular reference detection able to distinguish between a genuine circular reference (COT1 -> COT2 -> COT1), and a COT2 with multiple fields pointing to the same COT1 (which is legal).

Keeps track of target related_object_types checked during _has_circular_reference checking of a field and doesn't check any one target type more than once per COT in the ancestry chain.

@bctiemann bctiemann changed the title Fixes: #217 - Make circular reference detection aware of parent type to avoid false positives Fixes: #237 - Make circular reference detection aware of parent type to avoid false positives Nov 4, 2025
@bctiemann bctiemann requested a review from arthanson November 4, 2025 14:59
@bctiemann bctiemann marked this pull request as draft November 4, 2025 21:58
@bctiemann bctiemann force-pushed the 237-parent-aware-circular-reference-detection branch from 8a34e01 to 1a57081 Compare November 5, 2025 15:55
bctiemann and others added 2 commits November 5, 2025 10:56
…nce-detection' into 237-parent-aware-circular-reference-detection
@bctiemann bctiemann marked this pull request as ready for review November 5, 2025 15:57
@arthanson arthanson merged commit 91ebb76 into main Nov 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validation error when multiple links to the same COT

3 participants