Probable way of doing it here: https://stackoverflow.com/questions/62066474/python-flask-automatically-generated-swagger-openapi-3-0