miguelgrinberg / APIFairy

A minimalistic API framework built on top of Flask, Marshmallow and friends.
MIT License
323 stars 30 forks source link

OpenAPI Info block - additional information not mandatory by spec. #43

Closed jorgelaranjo closed 2 years ago

jorgelaranjo commented 2 years ago

After uploading an apispec file generated through APIFairy to Stoplight it does warn that the info block is missing the contact object.

Looking at the OpenAPI (Swagger) spec such block is not mandatory. image

Even minding this is not mandatory, would this something of added value to be added to config variables of APIFairy? And if yes, would termsOfService and license also be adding value?

As this is really my requirement, I'm happy to do a PR with that update.

miguelgrinberg commented 2 years ago

You can use the process_apispec decorator to insert anything that the extension does not support directly.

jorgelaranjo commented 2 years ago

Thanks