Python: Flask: Fix: Update setup.py to match requirements.txt (#4205)

* Python: Flask: Fix: Update setup.py to match requirements.txt

* Regenerate samples python-flask & python-flask-python2
This commit is contained in:
Guillaume SMAHA
2019-10-21 20:57:54 -04:00
committed by William Cheng
parent a38527d8b6
commit 5d7bb17cc6
18 changed files with 66 additions and 54 deletions

View File

@@ -49,15 +49,13 @@ def find_pets_by_status(status): # noqa: E501
return 'do some magic!'
def find_pets_by_tags(tags, max_count=None): # noqa: E501
def find_pets_by_tags(tags): # noqa: E501
"""Finds Pets by tags
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. # noqa: E501
:param tags: Tags to filter by
:type tags: List[str]
:param max_count: Maximum number of items to return
:type max_count: int
:rtype: List[Pet]
"""

View File

@@ -115,15 +115,6 @@ paths:
type: string
type: array
style: form
- description: Maximum number of items to return
explode: true
in: query
name: maxCount
required: false
schema:
format: int32
type: integer
style: form
responses:
200:
content:

View File

@@ -89,8 +89,7 @@ class TestPetController(BaseTestCase):
Finds Pets by tags
"""
query_string = [('tags', 'tags_example'),
('maxCount', 56)]
query_string = [('tags', 'tags_example')]
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer special-key',

View File

@@ -16,7 +16,7 @@ def _deserialize(data, klass):
if data is None:
return None
if klass in six.integer_types or klass in (float, str, bool):
if klass in six.integer_types or klass in (float, str, bool, bytearray):
return _deserialize_primitive(data, klass)
elif klass == object:
return _deserialize_object(data)