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

Upgrade to Pydantic 2 #30

Merged
merged 2 commits into from
Feb 16, 2024
Merged

Upgrade to Pydantic 2 #30

merged 2 commits into from
Feb 16, 2024

Conversation

kiloreven
Copy link
Contributor

No description provided.

@kiloreven kiloreven enabled auto-merge (rebase) February 15, 2024 15:36
Copy link

@nghial nghial left a comment

Choose a reason for hiding this comment

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

See my comment, but the rest looks good :)

# https://github.com/pydantic/pydantic/discussions/7962#discussioncomment-7939114
WorkdayCurrency = Annotated[Decimal, Field(max_digits=18, decimal_places=3)]
# Workday has multiple currency definitions depending on location
WorkdayCurrency2 = Annotated[Decimal, Field(max_digits=26, decimal_places=6)]
Copy link

Choose a reason for hiding this comment

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

I understand that this is from Workday, but shouldn't we have a better definition so that it is clearer of which one to use?

@kiloreven kiloreven merged commit 11a1a77 into main Feb 16, 2024
12 checks passed
@kiloreven kiloreven deleted the kiloreven/improvement/pydantic-2 branch February 16, 2024 10:20
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