sauron-engine icon indicating copy to clipboard operation
sauron-engine copied to clipboard

pydantic support

Open jlugao opened this issue 5 years ago • 2 comments

Sometimes we want to pass more data to components or we will want to build widgets in the frontend, such as range, date input, etcs. For this usecase perhaps the smartest thing to do is to support pydantic and have customModels for those types/widgets

jlugao avatar Jun 26 '19 18:06 jlugao

An important feature to add would be validation

https://pydantic-docs.helpmanual.io/#validators

also, I just realized that pydantic has json schema exporting

jlugao avatar Oct 05 '19 03:10 jlugao

Reviewing this I believe that everything can be done with already existing pydantic types, I believe that simple examples will suffice for this

jlugao avatar Jun 27 '20 17:06 jlugao