Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log a warning message when identically named fields are found #1201

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

sgillies
Copy link
Member

@sgillies sgillies commented Feb 9, 2023

Resolves #1178

name. When encountered, a warning message is logged and the
field is skipped.

"""
Copy link
Member Author

Choose a reason for hiding this comment

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

I took the opportunity to make get_schema more readable. We'll be making future changes to it.

i,
key
)
continue
Copy link
Member Author

Choose a reason for hiding this comment

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

This preserves existing behavior, field skipping, but adds a warning level log message. I decided against raising a warning, because there's nothing you can do about the fields and schema if you were to handle the warning.

@sgillies sgillies merged commit 4e7dcad into maint-1.9 Feb 9, 2023
@sgillies sgillies deleted the issue1178 branch February 9, 2023 19:58
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