OSeMOSYS / otoole

OSeMOSYS Tools for Energy
https://otoole.readthedocs.io
MIT License
23 stars 17 forks source link

Update to pydantic 2 #188

Closed trevorb1 closed 1 year ago

trevorb1 commented 1 year ago

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