Deployed on immense-shelf-72787.herokuapp.com.
# Use conda if you don't want to rely on the system's python interpreter
conda create --name playground python=3.8.12
pip install poetry
poetry install
poetry run api
API becomes available on 0.0.0.0:8000
poetry export -f requirements.txt --output requirements.txt
git push heroku main
View logs:
heroku logs --tail
- Investigate nested models
- Where to put validators? Mixins?
- Where to put computer fields? Mixins?
- Try patchable prop
- Only available in
Python 3.9
default
attribute is not allowed in conjuction withAnnotated
. But with default_factory it is possibleOptional[Annotated[str, Field(..., example="Hello World)]]
doesn't render example values inopenapi.json