Skip to content

fix: stop self-referential FK recursion#4

Draft
dkattan wants to merge 2 commits into
mainfrom
fix/self-referential-fk-recursion-stack
Draft

fix: stop self-referential FK recursion#4
dkattan wants to merge 2 commits into
mainfrom
fix/self-referential-fk-recursion-stack

Conversation

@dkattan
Copy link
Copy Markdown

@dkattan dkattan commented May 11, 2026

Summary

  • expose the next required Coalesce dependency slice for the Immybot response-harvest stack

Docs

  • Contributor docs impact: this is an internal metadata-discovery fix; no separate public docs page is needed beyond noting it in the stack.

dkattan and others added 2 commits May 6, 2026 04:47
Split direct foreign-key discovery from the shared-key fallback heuristics so self-referential and non-conventional navigation names don't recurse through ForeignKeyProperty while model validation is still trying to classify the relationship.

Add regression coverage for a self-referential navigation and for a consumer that targets that entity.

Validated with Coalesce tests on net10 and with Immybot's ImmybotDbContext, where generation now reaches normal model validation errors instead of stack overflowing.

Co-authored-by: Copilot <[email protected]>
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.

1 participant