Benezivas / algobattle

Let teams compete by making them create hard instances and fast solvers for problems of your choice. Then pitch these instances and solvers against one another. All language-agnostic.
https://algobattle.org
MIT License
8 stars 3 forks source link

move ref annotation validation into pydantic schema #145

Closed ImogenBits closed 11 months ago

ImogenBits commented 11 months ago

This fixes #142 by moving the invocation of the extra validation step for reference validators into the pydantic core schema, rather than overriding model_validate. This ensures it is always called, regardless of the class structures and mros involved.

Benezivas commented 11 months ago

Thank you