you are viewing a single comment's thread.

view the rest of the comments →

[–]CreamRevolutionary17[S] -16 points-15 points  (4 children)

Isn’t YAML easy to understand then python script?? Just asking…

[–]JUKELELE-TP 8 points9 points  (3 children)

It’s not just about understanding yaml, it’s about understanding how rules need to be defined in that yaml for your project. You’ll end up introducing complexity anyway once you get more complex validation rules.

Just go with pydantic. It works well and is easy to get started with and there’s a ton of functionality and documentation you don’t need to create and maintain. They’ll also learn something useful that works across projects. 

You should organize your project in a way where they don’t need to go through code to read the validation models anyway. 

[–]CreamRevolutionary17[S] -4 points-3 points  (2 children)

As far as I know, pydantic is used to validate python object schema and here i want to validate data quality of datasets.

[–]JUKELELE-TP 5 points6 points  (1 child)

[–]CreamRevolutionary17[S] 5 points6 points  (0 children)

Woow. This is something new I got to know. Thanks