Closed
Description
We can use pydentic models (correlated to the JSON schemas in FastAPI, see also) to replace the rather undefined json returns for as many endpoints as possible.
- That'll enable us to provide function signatures for the endpoints
- We have a better handle on/it is more clear what we have to expect when calling a function
- We get validation of data structures coherently and for a discount.
- We can test this more easily
- Some other benefits...
Downsides: ? - Please leave them in the comments if you find any.
Happy to work on this. It's more a matter of time/priority. So, it's up for grabs - first come first serve.