[Wsdl] Adding cli-option for generating different versions of WSDL-files regarding Media type versioning (content negotiation) (#12206)

* add wsdl version generation

* add option to use specified operationId

* update samples

* update cli description
This commit is contained in:
adessoDpd
2022-04-24 09:29:09 +02:00
committed by GitHub
parent 5b6b4c9d48
commit 1602942292
43 changed files with 454 additions and 346 deletions

View File

@@ -27,9 +27,9 @@ setup(
url="",
keywords=["OpenAPI", "OpenAPI Petstore"],
install_requires=REQUIRES,
packages=find_packages("src/"),
package_dir={"": "src/"},
package_data={'': ['src//openapi/openapi.yaml']},
packages=find_packages("src\"),
package_dir={"": "src\"},
package_data={'': ['src\/openapi/openapi.yaml']},
include_package_data=True,
entry_points={
'console_scripts': ['openapi_server=openapi_server.__main__:main']},

View File

@@ -12,7 +12,7 @@ def client(loop, aiohttp_client):
"swagger_ui": True
}
specification_dir = os.path.join(os.path.dirname(__file__), '..',
"src/",
"src\",
'openapi_server',
'openapi')
app = connexion.AioHttpApp(__name__, specification_dir=specification_dir,

View File

@@ -8,4 +8,4 @@ deps=-r{toxinidir}/requirements.txt
{toxinidir}
commands=
pytest --cov=src/openapi_server
pytest --cov=src\openapi_server