openclimatefix / nowcasting_datamodel

Datamodel for the nowcasting project
6 stars 6 forks source link

Upgrade pydantic validator to field_validator (#281) #282

Closed Bvr4 closed 5 months ago

Bvr4 commented 5 months ago

Pull Request

Description

This PR refers to the issue #281 : pydantic: Upgrade validator to field_validator

I followed the instructions in the link provided and the recommendations in the Pydantic migration guide.

This lead to the subsequent modifications :

How Has This Been Tested?

I tested via the test framework as seen in the readme file. As the modification are minors, it should be enough.

Checklist:

peterdudfield commented 5 months ago

@all-contributors please add @Bvr4 for code

allcontributors[bot] commented 5 months ago

@peterdudfield

I've put up a pull request to add @Bvr4! :tada: