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

Update to pydantic 2 #188

Merged
merged 1 commit into from
Aug 15, 2023
Merged

Update to pydantic 2 #188

merged 1 commit into from
Aug 15, 2023

Conversation

trevorb1
Copy link
Member

Description

DRAFT PR

In this PR I update the configuration file validation logic to work with pydantic>=2.0, following the Pydantic Migration Guide. This is labelled as a draft right now because, while all the tests pass, I think there are a couple additional features we can add. For example, making better use of the FieldValidationInfo and ValidationError. I will address this shortly.

Issue Ticket Number

Closes #185

Documentation

Na. No changes for the user

@willu47 willu47 merged commit e94d44b into OSeMOSYS:master Aug 15, 2023
3 checks passed
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.

[Bug]: pydantic 2.0 breaking operation
2 participants