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

Revert "Revert "Add Pydantic Extra.forbid to shared base model config "" #881

Closed
wants to merge 1 commit into from

Conversation

flaviuvadan
Copy link
Collaborator

Reverts #880

@flaviuvadan flaviuvadan added semver:patch A change requiring a patch version bump type:enhancement A general enhancement labels Nov 28, 2023
Copy link

codecov bot commented Nov 28, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (9aad50b) 79.7% compared to head (fd14131) 79.8%.

Files Patch % Lines
src/hera/workflows/user_container.py 86.1% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main    #881     +/-   ##
=======================================
+ Coverage   79.7%   79.8%   +0.1%     
=======================================
  Files         45      45             
  Lines       3706    3743     +37     
  Branches     750     763     +13     
=======================================
+ Hits        2955    2989     +34     
- Misses       558     561      +3     
  Partials     193     193             

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

"""uses smart union for matching a field's specified value to the underlying type that's part of a union"""
"""uses smart union for matching a field's specified value to the underlying type that's part of a union."""

extra = Extra.forbid
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we can turn it off when interacting with the server to solve the underlying issue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yea, probably.. I am surprised that the fields on the return payload may not match the fields on the autogen code though :(

@elliotgunton
Copy link
Collaborator

Closing this as it's getting stale (and is just a revert commit). Going to reopen the issue and we can reprioritise and come back to it

@elliotgunton elliotgunton deleted the revert-880-revert-820-fv/config branch January 10, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants