pydantic / FastUI

Build better UIs faster.
https://fastui-demo.onrender.com
MIT License
8k stars 303 forks source link

More form constraints #28

Open samuelcolvin opened 8 months ago

samuelcolvin commented 8 months ago

Currently we don't apply many common constraints from pydantic/json schema to forms:

Shouldn't be too hard to add these to the form field pydantic models, populate them in json_schema.py and add them to the input in the frontend.

WolfDWyc commented 8 months ago

As far as I understand, these can all be validated - but currently only on the server side? I assume the benefit of also validating this client side is speed but I'm not sure if I'm missing any others.

samuelcolvin commented 8 months ago

Yes