Unipressed icon indicating copy to clipboard operation
Unipressed copied to clipboard

Investigate using Pydantic models

Open multimeric opened this issue 2 years ago • 0 comments

In theory we could replace all the TypedDict with pydantic models.

Advantages:

  • Could implement advanced validation like regex etc
  • Could have low level models for things like ranges

Disadvantages:

  • More dependencies, so larger installation
  • Much more verbose queries. You would now have to import the appropriate models instead of just using built-in Python constructs

multimeric avatar Aug 03 '22 07:08 multimeric