Move custom rule validation logic and error handling to pydantic
jpower432 opened this issue · comments
Is your feature request related to a problem? Please describe.
There is some parameter validation logic that would be better handled through pydantic which is already being used. The solution with pydantic and custom validation classes lack cohesiveness.
Describe the solution you'd like
Pydantic has support for custom validation and error handling so migrate the validation logic to the TrestleRule
class and sub-classes.
Describe alternatives you've considered
N/A
Additional context
There may be some changes when upgrading to a new pydantic version
For this case, we may move validator
-> model_validator