Skip to content

Conversation

@ollieabbey
Copy link

@ollieabbey ollieabbey commented Jan 6, 2026

What?

Add full field path to field config sanitize errors.

Why?

Helps locate where the incorrect configuration is. I am currently getting an error message

"A field with the name 'folder' was found multiple times on the same level. Field names must be unique." 

and I'm unsure which collection is causing the issue.

How?

Pass the full path to the field through, and concatenate with ' > ' to display the full path.

@ollieabbey ollieabbey changed the title chore: add context to duplicate field name error chore: add full field path to field sanitize errors Jan 6, 2026
Copy link
Contributor

@DanRibbens DanRibbens left a comment

Choose a reason for hiding this comment

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

I like this change. It looks like there is a merge conflict to resolve.

@ollieabbey ollieabbey force-pushed the add_context_to_duplicate_field_name_error branch from 270fa82 to 4aefe34 Compare January 9, 2026 14:56
@ollieabbey
Copy link
Author

@DanRibbens I think it was just conflicts in imports - resolved now

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.

2 participants