tornado-swagger
tornado-swagger copied to clipboard
remove schemes and basePath for OAS3.0 and use servers instead
As OpenAPI Specification 3.0 does not support schemes and basePath any longer, I removed them from the generate_doc function and instead added the supported servers.
That PR makes sense. basePath and schemes are not supported anymore and replaced by the server-object: https://swagger.io/specification/#server-object
Currently you can't upgrade to OAS 3.0 if you use basePath. Additionally the swagger-validator (https://validator.swagger.io/) will fail with the generated 3.0 files.