Python flask pythonic params (#2374)

* Using connexion `pythonic_params` support while keeping OpenAPI spec file correct with reference to the original spec file.

* - Add `camelCase` query parameter which shows the incorrectnes of the conversion of the OpenAPI spec file in Python server implementation(s).

* Also use `pythonic_params=True` for the `python-aiohttp` implementation.

* - Updated Python related samples.

* The unit tests must provide the correct query parameters.

* - Updated Python related samples.
This commit is contained in:
Tom Ghyselinck
2019-03-24 03:36:26 +01:00
committed by William Cheng
parent 033ab8a6f5
commit f7943257c5
27 changed files with 190 additions and 69 deletions

View File

@@ -12,5 +12,5 @@ class BaseTestCase(TestCase):
logging.getLogger('connexion.operation').setLevel('ERROR')
app = connexion.App(__name__, specification_dir='../openapi/')
app.app.json_encoder = JSONEncoder
app.add_api('openapi.yaml')
app.add_api('openapi.yaml', pythonic_params=True)
return app.app