-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix PackageMetadata validation error with extra provided field #256
Conversation
Codecov Report
@@ Coverage Diff @@
## main #256 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 37 37
Lines 2807 2807
=========================================
Hits 2807 2807
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
You can remove the pyside dependency in the ci. It'll cause a test to fail, but that should get fixed in #255.
22c7ed3
to
01fa689
Compare
The
PackageMetadata
class is configured to ignore extra fields but instantiation can still fail (raises aKeyError
) when actually provided an extra field due to this custom root validator. Based on the config this does not seem like the intended behavior.This PR just changes that validator skip over any values not in the list of expected fields during this step.