Skip to content

feat(source-generators): add nested object and collection mapping#63

Merged
ncipollina merged 3 commits intomainfrom
feat/nested-mapping
Jan 21, 2026
Merged

feat(source-generators): add nested object and collection mapping#63
ncipollina merged 3 commits intomainfrom
feat/nested-mapping

Conversation

@ncipollina
Copy link
Contributor

@ncipollina ncipollina commented Jan 20, 2026


🚀 Pull Request

📋 Summary

Adds nested object and nested collection mapping to the source generator (mapper registry lookup with inline fallback), plus diagnostics for cycles and invalid dot-notation. Includes new nested examples and tests/snapshots to cover the behavior.


✅ Checklist

  • My changes build cleanly
  • I’ve added/updated relevant tests
  • I’ve added/updated documentation or README
  • I’ve followed the coding style for this project
  • I’ve tested the changes locally (if applicable)

🧪 Related Issues or PRs

Closes #48


💬 Notes for Reviewers

Focus review on the nested mapping decision tree (override → mapper-based → inline), nested collection handling, and new diagnostics DM0006–DM0008. Docs are not updated yet.

@ncipollina ncipollina requested a review from j-d-ha January 20, 2026 19:16
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: abcfc83c2c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

j-d-ha
j-d-ha previously approved these changes Jan 20, 2026
Copy link
Collaborator

@j-d-ha j-d-ha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good. Left some questions and small suggestions.

Comment on lines 27 to 32
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make these not have default values? I think some of this might be leftover from my work.

Comment on lines +11 to +12
bool IsCustomMethod = false,
bool IsNestedObjectPlaceholder = false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@ncipollina ncipollina changed the title Add nested mapping support feat(source-generators): add nested object and collection mapping Jan 20, 2026
Copy link
Collaborator

@j-d-ha j-d-ha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Awesome work!

@ncipollina ncipollina merged commit d63dd77 into main Jan 21, 2026
3 checks passed
@ncipollina ncipollina deleted the feat/nested-mapping branch January 21, 2026 12:37
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.

Add Automatic Nested Object Mapping (Embedded Maps)

2 participants