-
Notifications
You must be signed in to change notification settings - Fork 25
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
are pydantic BeforeValidator and AfterValidator annotations supported? #42
Comments
Hi, from my testing this is not working when you load data with data = polars.read_csv("data.csv", has_header=True)
try:
Model.validate(data)
except Exception as e:
print(e) It doesn't work either this way: data = Model.DataFrame.read_csv("data.csv", has_header=True) BUT it works if you create the object directly: |
It looks like this is resolved now? |
I did another way but they aren't included in the patito package. I coded the application of the validators myself using polars method as much as possible in the loading methods I created to load data and validating it. |
Thanks!
The text was updated successfully, but these errors were encountered: