Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5bc9540
Adds additionalproperties feature in python
spacether Feb 4, 2019
64d5444
Adds ensure-up-to-date updates
spacether Feb 4, 2019
ec73f56
Adds docstring description of the model argument inputs
spacether Feb 4, 2019
5cdfe51
Adds ensure up to date oepnapi3 python updates
spacether Feb 4, 2019
0a52027
Adds test fix
spacether Feb 4, 2019
8be21b0
Adds fix for Shippable, gives the additionalProperties CodegenParamet…
spacether Feb 4, 2019
ba7ea49
Adds function to set freeform types to string of all types
spacether Feb 7, 2019
88f8197
Adds postProcessAllModels function which processes and fixes dataType…
spacether Feb 7, 2019
0590d05
Adds models with additionalproperties of each type and model tests
spacether Feb 9, 2019
372ae60
Adds _check_type parameter to model, adds additionalproperties tests
spacether Feb 11, 2019
5b4f108
Creates utils module, adds additionalproperties map for serialization
spacether Feb 12, 2019
2e33cf1
Removes additional_properties_map, creates model_to_dict function to …
spacether Feb 13, 2019
983f570
Improves docstring for model_to_dict
spacether Feb 14, 2019
f218ed5
Adds class type definition in models
spacether Feb 17, 2019
7656756
Adds datetime and date type classes, adds general OpenApiException, r…
spacether Feb 18, 2019
7ac9285
Adds class imports to models, python generator uses dataType for docs…
spacether Feb 20, 2019
67dbb9c
Model discriminator now stores classes, adds __deserialize_model in a…
spacether Feb 22, 2019
9680dfd
Creates exceptions module, all deserialization tests in py2 except 1 …
spacether Feb 23, 2019
05fe1aa
Adds validate_and_convert_types, python 2.0 tests pass except for tes…
spacether Feb 25, 2019
e8f97fa
Adds anytype deserialization tests in python swagger client
spacether Feb 28, 2019
59b2d4c
Fixes typos
spacether Feb 28, 2019
e158601
Adds file deserialization test
spacether Mar 2, 2019
7d84ef2
Updates all v2 and v3 python samples
spacether Mar 3, 2019
b2446cf
Removes dubug flag, reverts readme, in python generator tweaks suppor…
spacether Mar 3, 2019
9e9b94e
Adds dict instantiationType back in
spacether Mar 3, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adds ensure up to date oepnapi3 python updates
  • Loading branch information
spacether committed Mar 2, 2019
commit 5cdfe51c6748b5a82fa8e5abe333db0fe7eb300f
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ class AdditionalPropertiesClass(object):
}

def __init__(self, **kwargs): # noqa: E501
"""AdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
"""AdditionalPropertiesClass - a model defined in OpenAPI



Keyword Args:
map_property (dict(str, str)): [optional]
map_of_map_property (dict(str, dict(str, str))): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ class Animal(object):
}

def __init__(self, class_name, **kwargs): # noqa: E501
"""Animal - a model defined in OpenAPI""" # noqa: E501
"""Animal - a model defined in OpenAPI

Args:
class_name (str):

Keyword Args:
color (str): [optional] if omitted the server will use the default value of 'red'

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ class ApiResponse(object):
}

def __init__(self, **kwargs): # noqa: E501
"""ApiResponse - a model defined in OpenAPI""" # noqa: E501
"""ApiResponse - a model defined in OpenAPI



Keyword Args:
code (int): [optional]
type (str): [optional]
message (str): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ class ArrayOfArrayOfNumberOnly(object):
}

def __init__(self, **kwargs): # noqa: E501
"""ArrayOfArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
"""ArrayOfArrayOfNumberOnly - a model defined in OpenAPI



Keyword Args:
array_array_number (list[list[float]]): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ class ArrayOfNumberOnly(object):
}

def __init__(self, **kwargs): # noqa: E501
"""ArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
"""ArrayOfNumberOnly - a model defined in OpenAPI



Keyword Args:
array_number (list[float]): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ class ArrayTest(object):
}

def __init__(self, **kwargs): # noqa: E501
"""ArrayTest - a model defined in OpenAPI""" # noqa: E501
"""ArrayTest - a model defined in OpenAPI



Keyword Args:
array_of_string (list[str]): [optional]
array_array_of_integer (list[list[int]]): [optional]
array_array_of_model (list[list[ReadOnlyFirst]]): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,19 @@ class Capitalization(object):
}

def __init__(self, **kwargs): # noqa: E501
"""Capitalization - a model defined in OpenAPI""" # noqa: E501
"""Capitalization - a model defined in OpenAPI



Keyword Args:
small_camel (str): [optional]
capital_camel (str): [optional]
small_snake (str): [optional]
capital_snake (str): [optional]
sca_eth_flow_points (str): [optional]
att_name (str): Name of the pet . [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ class Cat(object):
}

def __init__(self, class_name, **kwargs): # noqa: E501
"""Cat - a model defined in OpenAPI""" # noqa: E501
"""Cat - a model defined in OpenAPI

Args:
class_name (str):

Keyword Args:
declawed (bool): [optional]
color (str): [optional] if omitted the server will use the default value of 'red'

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ class Category(object):
}

def __init__(self, name='default-name', **kwargs): # noqa: E501
"""Category - a model defined in OpenAPI""" # noqa: E501
"""Category - a model defined in OpenAPI

Args:
name (str): defaults to 'default-name', must be one of ['default-name']

Keyword Args:
id (int): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ class ClassModel(object):
}

def __init__(self, **kwargs): # noqa: E501
"""ClassModel - a model defined in OpenAPI""" # noqa: E501
"""ClassModel - a model defined in OpenAPI



Keyword Args:
_class (str): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ class Client(object):
}

def __init__(self, **kwargs): # noqa: E501
"""Client - a model defined in OpenAPI""" # noqa: E501
"""Client - a model defined in OpenAPI



Keyword Args:
client (str): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ class Dog(object):
}

def __init__(self, class_name, **kwargs): # noqa: E501
"""Dog - a model defined in OpenAPI""" # noqa: E501
"""Dog - a model defined in OpenAPI

Args:
class_name (str):

Keyword Args:
breed (str): [optional]
color (str): [optional] if omitted the server will use the default value of 'red'

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ class EnumArrays(object):
}

def __init__(self, **kwargs): # noqa: E501
"""EnumArrays - a model defined in OpenAPI""" # noqa: E501
"""EnumArrays - a model defined in OpenAPI



Keyword Args:
just_symbol (str): [optional]
array_enum (list[str]): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ class EnumClass(object):
}

def __init__(self, **kwargs): # noqa: E501
"""EnumClass - a model defined in OpenAPI""" # noqa: E501
"""EnumClass - a model defined in OpenAPI





""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,18 @@ class EnumTest(object):
}

def __init__(self, enum_string_required, **kwargs): # noqa: E501
"""EnumTest - a model defined in OpenAPI""" # noqa: E501
"""EnumTest - a model defined in OpenAPI

Args:
enum_string_required (str):

Keyword Args:
enum_string (str): [optional]
enum_integer (int): [optional]
enum_number (float): [optional]
outer_enum (OuterEnum): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ class File(object):
}

def __init__(self, **kwargs): # noqa: E501
"""File - a model defined in OpenAPI""" # noqa: E501
"""File - a model defined in OpenAPI



Keyword Args:
source_uri (str): Test capitalization. [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ class FileSchemaTestClass(object):
}

def __init__(self, **kwargs): # noqa: E501
"""FileSchemaTestClass - a model defined in OpenAPI""" # noqa: E501
"""FileSchemaTestClass - a model defined in OpenAPI



Keyword Args:
file (File): [optional]
files (list[File]): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ class Foo(object):
}

def __init__(self, **kwargs): # noqa: E501
"""Foo - a model defined in OpenAPI""" # noqa: E501
"""Foo - a model defined in OpenAPI



Keyword Args:
bar (str): [optional] if omitted the server will use the default value of 'bar'

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,28 @@ class FormatTest(object):
}

def __init__(self, number, byte, date, password, **kwargs): # noqa: E501
"""FormatTest - a model defined in OpenAPI""" # noqa: E501
"""FormatTest - a model defined in OpenAPI

Args:
number (float):
byte (str):
date (date):
password (str):

Keyword Args:
integer (int): [optional]
int32 (int): [optional]
int64 (int): [optional]
float (float): [optional]
double (float): [optional]
string (str): [optional]
binary (file): [optional]
date_time (datetime): [optional]
uuid (str): [optional]
pattern_with_digits (str): A string that is a 10 digit number. Can have leading zeros.. [optional]
pattern_with_digits_and_delimiter (str): A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ class HasOnlyReadOnly(object):
}

def __init__(self, **kwargs): # noqa: E501
"""HasOnlyReadOnly - a model defined in OpenAPI""" # noqa: E501
"""HasOnlyReadOnly - a model defined in OpenAPI



Keyword Args:
bar (str): [optional]
foo (str): [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ class InlineObject(object):
}

def __init__(self, **kwargs): # noqa: E501
"""InlineObject - a model defined in OpenAPI""" # noqa: E501
"""InlineObject - a model defined in OpenAPI



Keyword Args:
name (str): Updated name of the pet. [optional]
status (str): Updated status of the pet. [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ class InlineObject1(object):
}

def __init__(self, **kwargs): # noqa: E501
"""InlineObject1 - a model defined in OpenAPI""" # noqa: E501
"""InlineObject1 - a model defined in OpenAPI



Keyword Args:
additional_metadata (str): Additional data to pass to server. [optional]
file (file): file to upload. [optional]

""" # noqa: E501

self._data_store = {}

Expand Down
Loading