Simple FastAPI app that creates forms from JSON schemas.
pip install -r requirements.txt
uvicorn main:app --reloadVisit http://localhost:8000
Send POST to /set-schema with JSON:
{
"name": { "type": "string", "required": true },
"email": { "type": "string", "email": true, "required": true },
"age": { "type": "number", "min_value": 0, "max_value": 120 }
}Then submit the form at /submit.
type: "string", "number", "date", "textarea"required: true/falsemin_length/max_length: for stringsmin_value/max_value: for numbersemail: true for email validationenum_values: array for dropdown options
python test_schema.py