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

Add optional support for pydantic v1 models when v2 is installed #897

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

sambhav
Copy link
Collaborator

@sambhav sambhav commented Dec 15, 2023

Pull Request Checklist

Description of PR
Currently, when pydantic v2 is used, users can only use v2 models.

This PR adds the ability to optionally provide v1 models to scripts.

@sambhav sambhav force-pushed the pydanticv2 branch 2 times, most recently from a1fc78f to 0a84b39 Compare December 15, 2023 13:31
@sambhav sambhav added type:enhancement A general enhancement semver:minor A change requiring a minor version bump labels Dec 15, 2023
Copy link

codecov bot commented Dec 15, 2023

Codecov Report

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

Comparison is base (38a4254) 79.7% compared to head (c17c050) 79.8%.

Files Patch % Lines
src/hera/workflows/script.py 80.0% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #897   +/-   ##
=====================================
  Coverage   79.7%   79.8%           
=====================================
  Files         45      45           
  Lines       3722    3736   +14     
  Branches     754     759    +5     
=====================================
+ Hits        2970    2984   +14     
+ Misses       558     557    -1     
- Partials     194     195    +1     

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

@sambhav sambhav enabled auto-merge (squash) December 15, 2023 13:36
@sambhav sambhav merged commit 4cf2340 into main Dec 15, 2023
22 checks passed
@sambhav sambhav deleted the pydanticv2 branch December 15, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:minor A change requiring a minor version bump type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants