pydantic / bump-pydantic

Convert Pydantic from V1 to V2 ♻
MIT License
303 stars 24 forks source link

Field(example=...) needs a codemod. #121

Closed Gamrix closed 12 months ago

Gamrix commented 1 year ago

In V1, there is an example argument in the Field constructor. For V2, this field was renamed to examples (with an s), and changed to be a list of examples.

Gamrix commented 1 year ago

Tried fixing this with PR #122