Connexion is a project which dispatches API request based on OAS specifications.
It is done parsing OAS files and adding flask/sanic routes to a blueprint which is then added to the app.
Currently supports Flask and aiohttp. I wrote a basic Sanic driver.
Connexion validates every request parameter/body/header and eventually the response using jsonschema expressed in the OAS and provide a standard error-handling layout.
Request/Responses, that are translated to/from the framework: not a great connexion expert here, but probably using custom noop decorators we could skip some connexion features to increase speed. I think that if you have to validate deeply all sanic request/response you’ll slow down your Sanic app too.
If you have further questions please let me know!
Peace, R.