forked from loafle/openapi-generator-original
[python] Add option to skip client validations (#4137)
* Adds options to skip client side validations * Runs petstore.sh * Correct typo in variable name * Consistent code styling * Rerun petstore.sh * Change position of local_vars_configuration * Make code pep8 compliant
This commit is contained in:
@@ -103,8 +103,8 @@ class AnotherFakeApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'client' is set
|
||||
if ('client' not in local_var_params or
|
||||
local_var_params['client'] is None):
|
||||
if self.api_client.client_side_validation and ('client' not in local_var_params or # noqa: E501
|
||||
local_var_params['client'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `client` when calling `call_123_test_special_tags`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
@@ -633,8 +633,8 @@ class FakeApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'file_schema_test_class' is set
|
||||
if ('file_schema_test_class' not in local_var_params or
|
||||
local_var_params['file_schema_test_class'] is None):
|
||||
if self.api_client.client_side_validation and ('file_schema_test_class' not in local_var_params or # noqa: E501
|
||||
local_var_params['file_schema_test_class'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `file_schema_test_class` when calling `test_body_with_file_schema`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -741,12 +741,12 @@ class FakeApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'query' is set
|
||||
if ('query' not in local_var_params or
|
||||
local_var_params['query'] is None):
|
||||
if self.api_client.client_side_validation and ('query' not in local_var_params or # noqa: E501
|
||||
local_var_params['query'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `query` when calling `test_body_with_query_params`") # noqa: E501
|
||||
# verify the required parameter 'user' is set
|
||||
if ('user' not in local_var_params or
|
||||
local_var_params['user'] is None):
|
||||
if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
|
||||
local_var_params['user'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `user` when calling `test_body_with_query_params`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -855,8 +855,8 @@ class FakeApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'client' is set
|
||||
if ('client' not in local_var_params or
|
||||
local_var_params['client'] is None):
|
||||
if self.api_client.client_side_validation and ('client' not in local_var_params or # noqa: E501
|
||||
local_var_params['client'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `client` when calling `test_client_model`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -993,49 +993,49 @@ class FakeApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'number' is set
|
||||
if ('number' not in local_var_params or
|
||||
local_var_params['number'] is None):
|
||||
if self.api_client.client_side_validation and ('number' not in local_var_params or # noqa: E501
|
||||
local_var_params['number'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `number` when calling `test_endpoint_parameters`") # noqa: E501
|
||||
# verify the required parameter 'double' is set
|
||||
if ('double' not in local_var_params or
|
||||
local_var_params['double'] is None):
|
||||
if self.api_client.client_side_validation and ('double' not in local_var_params or # noqa: E501
|
||||
local_var_params['double'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `double` when calling `test_endpoint_parameters`") # noqa: E501
|
||||
# verify the required parameter 'pattern_without_delimiter' is set
|
||||
if ('pattern_without_delimiter' not in local_var_params or
|
||||
local_var_params['pattern_without_delimiter'] is None):
|
||||
if self.api_client.client_side_validation and ('pattern_without_delimiter' not in local_var_params or # noqa: E501
|
||||
local_var_params['pattern_without_delimiter'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`") # noqa: E501
|
||||
# verify the required parameter 'byte' is set
|
||||
if ('byte' not in local_var_params or
|
||||
local_var_params['byte'] is None):
|
||||
if self.api_client.client_side_validation and ('byte' not in local_var_params or # noqa: E501
|
||||
local_var_params['byte'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `byte` when calling `test_endpoint_parameters`") # noqa: E501
|
||||
|
||||
if 'number' in local_var_params and local_var_params['number'] > 543.2: # noqa: E501
|
||||
if self.api_client.client_side_validation and 'number' in local_var_params and local_var_params['number'] > 543.2: # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `number` when calling `test_endpoint_parameters`, must be a value less than or equal to `543.2`") # noqa: E501
|
||||
if 'number' in local_var_params and local_var_params['number'] < 32.1: # noqa: E501
|
||||
if self.api_client.client_side_validation and 'number' in local_var_params and local_var_params['number'] < 32.1: # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `number` when calling `test_endpoint_parameters`, must be a value greater than or equal to `32.1`") # noqa: E501
|
||||
if 'double' in local_var_params and local_var_params['double'] > 123.4: # noqa: E501
|
||||
if self.api_client.client_side_validation and 'double' in local_var_params and local_var_params['double'] > 123.4: # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value less than or equal to `123.4`") # noqa: E501
|
||||
if 'double' in local_var_params and local_var_params['double'] < 67.8: # noqa: E501
|
||||
if self.api_client.client_side_validation and 'double' in local_var_params and local_var_params['double'] < 67.8: # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value greater than or equal to `67.8`") # noqa: E501
|
||||
if 'pattern_without_delimiter' in local_var_params and not re.search(r'^[A-Z].*', local_var_params['pattern_without_delimiter']): # noqa: E501
|
||||
if self.api_client.client_side_validation and 'pattern_without_delimiter' in local_var_params and not re.search(r'^[A-Z].*', local_var_params['pattern_without_delimiter']): # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`, must conform to the pattern `/^[A-Z].*/`") # noqa: E501
|
||||
if 'integer' in local_var_params and local_var_params['integer'] > 100: # noqa: E501
|
||||
if self.api_client.client_side_validation and 'integer' in local_var_params and local_var_params['integer'] > 100: # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value less than or equal to `100`") # noqa: E501
|
||||
if 'integer' in local_var_params and local_var_params['integer'] < 10: # noqa: E501
|
||||
if self.api_client.client_side_validation and 'integer' in local_var_params and local_var_params['integer'] < 10: # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value greater than or equal to `10`") # noqa: E501
|
||||
if 'int32' in local_var_params and local_var_params['int32'] > 200: # noqa: E501
|
||||
if self.api_client.client_side_validation and 'int32' in local_var_params and local_var_params['int32'] > 200: # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value less than or equal to `200`") # noqa: E501
|
||||
if 'int32' in local_var_params and local_var_params['int32'] < 20: # noqa: E501
|
||||
if self.api_client.client_side_validation and 'int32' in local_var_params and local_var_params['int32'] < 20: # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value greater than or equal to `20`") # noqa: E501
|
||||
if 'float' in local_var_params and local_var_params['float'] > 987.6: # noqa: E501
|
||||
if self.api_client.client_side_validation and 'float' in local_var_params and local_var_params['float'] > 987.6: # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `float` when calling `test_endpoint_parameters`, must be a value less than or equal to `987.6`") # noqa: E501
|
||||
if 'string' in local_var_params and not re.search(r'[a-z]', local_var_params['string'], flags=re.IGNORECASE): # noqa: E501
|
||||
if self.api_client.client_side_validation and 'string' in local_var_params and not re.search(r'[a-z]', local_var_params['string'], flags=re.IGNORECASE): # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `string` when calling `test_endpoint_parameters`, must conform to the pattern `/[a-z]/i`") # noqa: E501
|
||||
if ('password' in local_var_params and
|
||||
len(local_var_params['password']) > 64):
|
||||
if self.api_client.client_side_validation and ('password' in local_var_params and # noqa: E501
|
||||
len(local_var_params['password']) > 64): # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be less than or equal to `64`") # noqa: E501
|
||||
if ('password' in local_var_params and
|
||||
len(local_var_params['password']) < 10):
|
||||
if self.api_client.client_side_validation and ('password' in local_var_params and # noqa: E501
|
||||
len(local_var_params['password']) < 10): # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be greater than or equal to `10`") # noqa: E501
|
||||
collection_formats = {}
|
||||
|
||||
@@ -1312,16 +1312,16 @@ class FakeApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'required_string_group' is set
|
||||
if ('required_string_group' not in local_var_params or
|
||||
local_var_params['required_string_group'] is None):
|
||||
if self.api_client.client_side_validation and ('required_string_group' not in local_var_params or # noqa: E501
|
||||
local_var_params['required_string_group'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `required_string_group` when calling `test_group_parameters`") # noqa: E501
|
||||
# verify the required parameter 'required_boolean_group' is set
|
||||
if ('required_boolean_group' not in local_var_params or
|
||||
local_var_params['required_boolean_group'] is None):
|
||||
if self.api_client.client_side_validation and ('required_boolean_group' not in local_var_params or # noqa: E501
|
||||
local_var_params['required_boolean_group'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `required_boolean_group` when calling `test_group_parameters`") # noqa: E501
|
||||
# verify the required parameter 'required_int64_group' is set
|
||||
if ('required_int64_group' not in local_var_params or
|
||||
local_var_params['required_int64_group'] is None):
|
||||
if self.api_client.client_side_validation and ('required_int64_group' not in local_var_params or # noqa: E501
|
||||
local_var_params['required_int64_group'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `required_int64_group` when calling `test_group_parameters`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -1432,8 +1432,8 @@ class FakeApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'request_body' is set
|
||||
if ('request_body' not in local_var_params or
|
||||
local_var_params['request_body'] is None):
|
||||
if self.api_client.client_side_validation and ('request_body' not in local_var_params or # noqa: E501
|
||||
local_var_params['request_body'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `request_body` when calling `test_inline_additional_properties`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -1540,12 +1540,12 @@ class FakeApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'param' is set
|
||||
if ('param' not in local_var_params or
|
||||
local_var_params['param'] is None):
|
||||
if self.api_client.client_side_validation and ('param' not in local_var_params or # noqa: E501
|
||||
local_var_params['param'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `param` when calling `test_json_form_data`") # noqa: E501
|
||||
# verify the required parameter 'param2' is set
|
||||
if ('param2' not in local_var_params or
|
||||
local_var_params['param2'] is None):
|
||||
if self.api_client.client_side_validation and ('param2' not in local_var_params or # noqa: E501
|
||||
local_var_params['param2'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `param2` when calling `test_json_form_data`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -1662,24 +1662,24 @@ class FakeApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'pipe' is set
|
||||
if ('pipe' not in local_var_params or
|
||||
local_var_params['pipe'] is None):
|
||||
if self.api_client.client_side_validation and ('pipe' not in local_var_params or # noqa: E501
|
||||
local_var_params['pipe'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `pipe` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||
# verify the required parameter 'ioutil' is set
|
||||
if ('ioutil' not in local_var_params or
|
||||
local_var_params['ioutil'] is None):
|
||||
if self.api_client.client_side_validation and ('ioutil' not in local_var_params or # noqa: E501
|
||||
local_var_params['ioutil'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `ioutil` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||
# verify the required parameter 'http' is set
|
||||
if ('http' not in local_var_params or
|
||||
local_var_params['http'] is None):
|
||||
if self.api_client.client_side_validation and ('http' not in local_var_params or # noqa: E501
|
||||
local_var_params['http'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `http` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||
# verify the required parameter 'url' is set
|
||||
if ('url' not in local_var_params or
|
||||
local_var_params['url'] is None):
|
||||
if self.api_client.client_side_validation and ('url' not in local_var_params or # noqa: E501
|
||||
local_var_params['url'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `url` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||
# verify the required parameter 'context' is set
|
||||
if ('context' not in local_var_params or
|
||||
local_var_params['context'] is None):
|
||||
if self.api_client.client_side_validation and ('context' not in local_var_params or # noqa: E501
|
||||
local_var_params['context'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `context` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
@@ -103,8 +103,8 @@ class FakeClassnameTags123Api(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'client' is set
|
||||
if ('client' not in local_var_params or
|
||||
local_var_params['client'] is None):
|
||||
if self.api_client.client_side_validation and ('client' not in local_var_params or # noqa: E501
|
||||
local_var_params['client'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `client` when calling `test_classname`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
@@ -107,8 +107,8 @@ class PetApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'pet' is set
|
||||
if ('pet' not in local_var_params or
|
||||
local_var_params['pet'] is None):
|
||||
if self.api_client.client_side_validation and ('pet' not in local_var_params or # noqa: E501
|
||||
local_var_params['pet'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `pet` when calling `add_pet`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -216,8 +216,8 @@ class PetApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'pet_id' is set
|
||||
if ('pet_id' not in local_var_params or
|
||||
local_var_params['pet_id'] is None):
|
||||
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||
local_var_params['pet_id'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `delete_pet`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -322,8 +322,8 @@ class PetApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'status' is set
|
||||
if ('status' not in local_var_params or
|
||||
local_var_params['status'] is None):
|
||||
if self.api_client.client_side_validation and ('status' not in local_var_params or # noqa: E501
|
||||
local_var_params['status'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `status` when calling `find_pets_by_status`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -431,8 +431,8 @@ class PetApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'tags' is set
|
||||
if ('tags' not in local_var_params or
|
||||
local_var_params['tags'] is None):
|
||||
if self.api_client.client_side_validation and ('tags' not in local_var_params or # noqa: E501
|
||||
local_var_params['tags'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `tags` when calling `find_pets_by_tags`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -540,8 +540,8 @@ class PetApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'pet_id' is set
|
||||
if ('pet_id' not in local_var_params or
|
||||
local_var_params['pet_id'] is None):
|
||||
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||
local_var_params['pet_id'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `get_pet_by_id`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -652,8 +652,8 @@ class PetApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'pet' is set
|
||||
if ('pet' not in local_var_params or
|
||||
local_var_params['pet'] is None):
|
||||
if self.api_client.client_side_validation and ('pet' not in local_var_params or # noqa: E501
|
||||
local_var_params['pet'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `pet` when calling `update_pet`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -763,8 +763,8 @@ class PetApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'pet_id' is set
|
||||
if ('pet_id' not in local_var_params or
|
||||
local_var_params['pet_id'] is None):
|
||||
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||
local_var_params['pet_id'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `update_pet_with_form`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -877,8 +877,8 @@ class PetApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'pet_id' is set
|
||||
if ('pet_id' not in local_var_params or
|
||||
local_var_params['pet_id'] is None):
|
||||
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||
local_var_params['pet_id'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `upload_file`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -995,12 +995,12 @@ class PetApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'pet_id' is set
|
||||
if ('pet_id' not in local_var_params or
|
||||
local_var_params['pet_id'] is None):
|
||||
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||
local_var_params['pet_id'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `upload_file_with_required_file`") # noqa: E501
|
||||
# verify the required parameter 'required_file' is set
|
||||
if ('required_file' not in local_var_params or
|
||||
local_var_params['required_file'] is None):
|
||||
if self.api_client.client_side_validation and ('required_file' not in local_var_params or # noqa: E501
|
||||
local_var_params['required_file'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `required_file` when calling `upload_file_with_required_file`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
@@ -103,8 +103,8 @@ class StoreApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'order_id' is set
|
||||
if ('order_id' not in local_var_params or
|
||||
local_var_params['order_id'] is None):
|
||||
if self.api_client.client_side_validation and ('order_id' not in local_var_params or # noqa: E501
|
||||
local_var_params['order_id'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `order_id` when calling `delete_order`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -307,13 +307,13 @@ class StoreApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'order_id' is set
|
||||
if ('order_id' not in local_var_params or
|
||||
local_var_params['order_id'] is None):
|
||||
if self.api_client.client_side_validation and ('order_id' not in local_var_params or # noqa: E501
|
||||
local_var_params['order_id'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `order_id` when calling `get_order_by_id`") # noqa: E501
|
||||
|
||||
if 'order_id' in local_var_params and local_var_params['order_id'] > 5: # noqa: E501
|
||||
if self.api_client.client_side_validation and 'order_id' in local_var_params and local_var_params['order_id'] > 5: # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value less than or equal to `5`") # noqa: E501
|
||||
if 'order_id' in local_var_params and local_var_params['order_id'] < 1: # noqa: E501
|
||||
if self.api_client.client_side_validation and 'order_id' in local_var_params and local_var_params['order_id'] < 1: # noqa: E501
|
||||
raise ApiValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value greater than or equal to `1`") # noqa: E501
|
||||
collection_formats = {}
|
||||
|
||||
@@ -417,8 +417,8 @@ class StoreApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'order' is set
|
||||
if ('order' not in local_var_params or
|
||||
local_var_params['order'] is None):
|
||||
if self.api_client.client_side_validation and ('order' not in local_var_params or # noqa: E501
|
||||
local_var_params['order'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `order` when calling `place_order`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
@@ -103,8 +103,8 @@ class UserApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'user' is set
|
||||
if ('user' not in local_var_params or
|
||||
local_var_params['user'] is None):
|
||||
if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
|
||||
local_var_params['user'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `user` when calling `create_user`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -209,8 +209,8 @@ class UserApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'user' is set
|
||||
if ('user' not in local_var_params or
|
||||
local_var_params['user'] is None):
|
||||
if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
|
||||
local_var_params['user'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `user` when calling `create_users_with_array_input`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -315,8 +315,8 @@ class UserApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'user' is set
|
||||
if ('user' not in local_var_params or
|
||||
local_var_params['user'] is None):
|
||||
if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
|
||||
local_var_params['user'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `user` when calling `create_users_with_list_input`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -423,8 +423,8 @@ class UserApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'username' is set
|
||||
if ('username' not in local_var_params or
|
||||
local_var_params['username'] is None):
|
||||
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||
local_var_params['username'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `username` when calling `delete_user`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -525,8 +525,8 @@ class UserApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'username' is set
|
||||
if ('username' not in local_var_params or
|
||||
local_var_params['username'] is None):
|
||||
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||
local_var_params['username'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `username` when calling `get_user_by_name`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -633,12 +633,12 @@ class UserApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'username' is set
|
||||
if ('username' not in local_var_params or
|
||||
local_var_params['username'] is None):
|
||||
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||
local_var_params['username'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `username` when calling `login_user`") # noqa: E501
|
||||
# verify the required parameter 'password' is set
|
||||
if ('password' not in local_var_params or
|
||||
local_var_params['password'] is None):
|
||||
if self.api_client.client_side_validation and ('password' not in local_var_params or # noqa: E501
|
||||
local_var_params['password'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `password` when calling `login_user`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
@@ -843,12 +843,12 @@ class UserApi(object):
|
||||
local_var_params[key] = val
|
||||
del local_var_params['kwargs']
|
||||
# verify the required parameter 'username' is set
|
||||
if ('username' not in local_var_params or
|
||||
local_var_params['username'] is None):
|
||||
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||
local_var_params['username'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `username` when calling `update_user`") # noqa: E501
|
||||
# verify the required parameter 'user' is set
|
||||
if ('user' not in local_var_params or
|
||||
local_var_params['user'] is None):
|
||||
if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
|
||||
local_var_params['user'] is None): # noqa: E501
|
||||
raise ApiValueError("Missing the required parameter `user` when calling `update_user`") # noqa: E501
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
@@ -77,6 +77,7 @@ class ApiClient(object):
|
||||
self.cookie = cookie
|
||||
# Set default User-Agent.
|
||||
self.user_agent = 'OpenAPI-Generator/1.0.0/python'
|
||||
self.client_side_validation = configuration.client_side_validation
|
||||
|
||||
def __del__(self):
|
||||
if self._pool:
|
||||
|
||||
@@ -138,6 +138,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
||||
self.retries = None
|
||||
"""Adding retries to override urllib3 default value 3
|
||||
"""
|
||||
# Disable client side validation
|
||||
self.client_side_validation = True
|
||||
|
||||
@property
|
||||
def logger_file(self):
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class AdditionalPropertiesClass(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class AdditionalPropertiesClass(object):
|
||||
'map_of_map_property': 'map_of_map_property'
|
||||
}
|
||||
|
||||
def __init__(self, map_property=None, map_of_map_property=None): # noqa: E501
|
||||
def __init__(self, map_property=None, map_of_map_property=None, local_vars_configuration=None): # noqa: E501
|
||||
"""AdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._map_property = None
|
||||
self._map_of_map_property = None
|
||||
@@ -131,8 +136,11 @@ class AdditionalPropertiesClass(object):
|
||||
if not isinstance(other, AdditionalPropertiesClass):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, AdditionalPropertiesClass):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Animal(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -45,8 +47,11 @@ class Animal(object):
|
||||
'Cat': 'Cat'
|
||||
}
|
||||
|
||||
def __init__(self, class_name=None, color='red'): # noqa: E501
|
||||
def __init__(self, class_name=None, color='red', local_vars_configuration=None): # noqa: E501
|
||||
"""Animal - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._class_name = None
|
||||
self._color = None
|
||||
@@ -74,7 +79,7 @@ class Animal(object):
|
||||
:param class_name: The class_name of this Animal. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if class_name is None:
|
||||
if self.local_vars_configuration.client_side_validation and class_name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `class_name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._class_name = class_name
|
||||
@@ -143,8 +148,11 @@ class Animal(object):
|
||||
if not isinstance(other, Animal):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Animal):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class ApiResponse(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -42,8 +44,11 @@ class ApiResponse(object):
|
||||
'message': 'message'
|
||||
}
|
||||
|
||||
def __init__(self, code=None, type=None, message=None): # noqa: E501
|
||||
def __init__(self, code=None, type=None, message=None, local_vars_configuration=None): # noqa: E501
|
||||
"""ApiResponse - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._code = None
|
||||
self._type = None
|
||||
@@ -157,8 +162,11 @@ class ApiResponse(object):
|
||||
if not isinstance(other, ApiResponse):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, ApiResponse):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class ArrayOfArrayOfNumberOnly(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class ArrayOfArrayOfNumberOnly(object):
|
||||
'array_array_number': 'ArrayArrayNumber'
|
||||
}
|
||||
|
||||
def __init__(self, array_array_number=None): # noqa: E501
|
||||
def __init__(self, array_array_number=None, local_vars_configuration=None): # noqa: E501
|
||||
"""ArrayOfArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._array_array_number = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class ArrayOfArrayOfNumberOnly(object):
|
||||
if not isinstance(other, ArrayOfArrayOfNumberOnly):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, ArrayOfArrayOfNumberOnly):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class ArrayOfNumberOnly(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class ArrayOfNumberOnly(object):
|
||||
'array_number': 'ArrayNumber'
|
||||
}
|
||||
|
||||
def __init__(self, array_number=None): # noqa: E501
|
||||
def __init__(self, array_number=None, local_vars_configuration=None): # noqa: E501
|
||||
"""ArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._array_number = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class ArrayOfNumberOnly(object):
|
||||
if not isinstance(other, ArrayOfNumberOnly):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, ArrayOfNumberOnly):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class ArrayTest(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -42,8 +44,11 @@ class ArrayTest(object):
|
||||
'array_array_of_model': 'array_array_of_model'
|
||||
}
|
||||
|
||||
def __init__(self, array_of_string=None, array_array_of_integer=None, array_array_of_model=None): # noqa: E501
|
||||
def __init__(self, array_of_string=None, array_array_of_integer=None, array_array_of_model=None, local_vars_configuration=None): # noqa: E501
|
||||
"""ArrayTest - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._array_of_string = None
|
||||
self._array_array_of_integer = None
|
||||
@@ -157,8 +162,11 @@ class ArrayTest(object):
|
||||
if not isinstance(other, ArrayTest):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, ArrayTest):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Capitalization(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -48,8 +50,11 @@ class Capitalization(object):
|
||||
'att_name': 'ATT_NAME'
|
||||
}
|
||||
|
||||
def __init__(self, small_camel=None, capital_camel=None, small_snake=None, capital_snake=None, sca_eth_flow_points=None, att_name=None): # noqa: E501
|
||||
def __init__(self, small_camel=None, capital_camel=None, small_snake=None, capital_snake=None, sca_eth_flow_points=None, att_name=None, local_vars_configuration=None): # noqa: E501
|
||||
"""Capitalization - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._small_camel = None
|
||||
self._capital_camel = None
|
||||
@@ -237,8 +242,11 @@ class Capitalization(object):
|
||||
if not isinstance(other, Capitalization):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Capitalization):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Cat(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class Cat(object):
|
||||
'declawed': 'declawed'
|
||||
}
|
||||
|
||||
def __init__(self, declawed=None): # noqa: E501
|
||||
def __init__(self, declawed=None, local_vars_configuration=None): # noqa: E501
|
||||
"""Cat - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._declawed = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class Cat(object):
|
||||
if not isinstance(other, Cat):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Cat):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class CatAllOf(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class CatAllOf(object):
|
||||
'declawed': 'declawed'
|
||||
}
|
||||
|
||||
def __init__(self, declawed=None): # noqa: E501
|
||||
def __init__(self, declawed=None, local_vars_configuration=None): # noqa: E501
|
||||
"""CatAllOf - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._declawed = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class CatAllOf(object):
|
||||
if not isinstance(other, CatAllOf):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, CatAllOf):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Category(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class Category(object):
|
||||
'name': 'name'
|
||||
}
|
||||
|
||||
def __init__(self, id=None, name='default-name'): # noqa: E501
|
||||
def __init__(self, id=None, name='default-name', local_vars_configuration=None): # noqa: E501
|
||||
"""Category - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._id = None
|
||||
self._name = None
|
||||
@@ -90,7 +95,7 @@ class Category(object):
|
||||
:param name: The name of this Category. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if name is None:
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
@@ -132,8 +137,11 @@ class Category(object):
|
||||
if not isinstance(other, Category):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Category):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class ClassModel(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class ClassModel(object):
|
||||
'_class': '_class'
|
||||
}
|
||||
|
||||
def __init__(self, _class=None): # noqa: E501
|
||||
def __init__(self, _class=None, local_vars_configuration=None): # noqa: E501
|
||||
"""ClassModel - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self.__class = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class ClassModel(object):
|
||||
if not isinstance(other, ClassModel):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, ClassModel):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Client(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class Client(object):
|
||||
'client': 'client'
|
||||
}
|
||||
|
||||
def __init__(self, client=None): # noqa: E501
|
||||
def __init__(self, client=None, local_vars_configuration=None): # noqa: E501
|
||||
"""Client - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._client = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class Client(object):
|
||||
if not isinstance(other, Client):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Client):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Dog(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class Dog(object):
|
||||
'breed': 'breed'
|
||||
}
|
||||
|
||||
def __init__(self, breed=None): # noqa: E501
|
||||
def __init__(self, breed=None, local_vars_configuration=None): # noqa: E501
|
||||
"""Dog - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._breed = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class Dog(object):
|
||||
if not isinstance(other, Dog):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Dog):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class DogAllOf(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class DogAllOf(object):
|
||||
'breed': 'breed'
|
||||
}
|
||||
|
||||
def __init__(self, breed=None): # noqa: E501
|
||||
def __init__(self, breed=None, local_vars_configuration=None): # noqa: E501
|
||||
"""DogAllOf - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._breed = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class DogAllOf(object):
|
||||
if not isinstance(other, DogAllOf):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, DogAllOf):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class EnumArrays(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class EnumArrays(object):
|
||||
'array_enum': 'array_enum'
|
||||
}
|
||||
|
||||
def __init__(self, just_symbol=None, array_enum=None): # noqa: E501
|
||||
def __init__(self, just_symbol=None, array_enum=None, local_vars_configuration=None): # noqa: E501
|
||||
"""EnumArrays - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._just_symbol = None
|
||||
self._array_enum = None
|
||||
@@ -71,7 +76,7 @@ class EnumArrays(object):
|
||||
:type: str
|
||||
"""
|
||||
allowed_values = [">=", "$"] # noqa: E501
|
||||
if just_symbol not in allowed_values:
|
||||
if self.local_vars_configuration.client_side_validation and just_symbol not in allowed_values: # noqa: E501
|
||||
raise ValueError(
|
||||
"Invalid value for `just_symbol` ({0}), must be one of {1}" # noqa: E501
|
||||
.format(just_symbol, allowed_values)
|
||||
@@ -98,7 +103,8 @@ class EnumArrays(object):
|
||||
:type: list[str]
|
||||
"""
|
||||
allowed_values = ["fish", "crab"] # noqa: E501
|
||||
if not set(array_enum).issubset(set(allowed_values)):
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
not set(array_enum).issubset(set(allowed_values))):
|
||||
raise ValueError(
|
||||
"Invalid values for `array_enum` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||
.format(", ".join(map(str, set(array_enum) - set(allowed_values))), # noqa: E501
|
||||
@@ -144,8 +150,11 @@ class EnumArrays(object):
|
||||
if not isinstance(other, EnumArrays):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, EnumArrays):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class EnumClass(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -43,8 +45,11 @@ class EnumClass(object):
|
||||
attribute_map = {
|
||||
}
|
||||
|
||||
def __init__(self): # noqa: E501
|
||||
def __init__(self, local_vars_configuration=None): # noqa: E501
|
||||
"""EnumClass - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
self.discriminator = None
|
||||
|
||||
def to_dict(self):
|
||||
@@ -84,8 +89,11 @@ class EnumClass(object):
|
||||
if not isinstance(other, EnumClass):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, EnumClass):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class EnumTest(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -52,8 +54,11 @@ class EnumTest(object):
|
||||
'outer_enum_integer_default_value': 'outerEnumIntegerDefaultValue'
|
||||
}
|
||||
|
||||
def __init__(self, enum_string=None, enum_string_required=None, enum_integer=None, enum_number=None, outer_enum=None, outer_enum_integer=None, outer_enum_default_value=None, outer_enum_integer_default_value=None): # noqa: E501
|
||||
def __init__(self, enum_string=None, enum_string_required=None, enum_integer=None, enum_number=None, outer_enum=None, outer_enum_integer=None, outer_enum_default_value=None, outer_enum_integer_default_value=None, local_vars_configuration=None): # noqa: E501
|
||||
"""EnumTest - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._enum_string = None
|
||||
self._enum_string_required = None
|
||||
@@ -99,7 +104,7 @@ class EnumTest(object):
|
||||
:type: str
|
||||
"""
|
||||
allowed_values = ["UPPER", "lower", ""] # noqa: E501
|
||||
if enum_string not in allowed_values:
|
||||
if self.local_vars_configuration.client_side_validation and enum_string not in allowed_values: # noqa: E501
|
||||
raise ValueError(
|
||||
"Invalid value for `enum_string` ({0}), must be one of {1}" # noqa: E501
|
||||
.format(enum_string, allowed_values)
|
||||
@@ -125,10 +130,10 @@ class EnumTest(object):
|
||||
:param enum_string_required: The enum_string_required of this EnumTest. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if enum_string_required is None:
|
||||
if self.local_vars_configuration.client_side_validation and enum_string_required is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `enum_string_required`, must not be `None`") # noqa: E501
|
||||
allowed_values = ["UPPER", "lower", ""] # noqa: E501
|
||||
if enum_string_required not in allowed_values:
|
||||
if self.local_vars_configuration.client_side_validation and enum_string_required not in allowed_values: # noqa: E501
|
||||
raise ValueError(
|
||||
"Invalid value for `enum_string_required` ({0}), must be one of {1}" # noqa: E501
|
||||
.format(enum_string_required, allowed_values)
|
||||
@@ -155,7 +160,7 @@ class EnumTest(object):
|
||||
:type: int
|
||||
"""
|
||||
allowed_values = [1, -1] # noqa: E501
|
||||
if enum_integer not in allowed_values:
|
||||
if self.local_vars_configuration.client_side_validation and enum_integer not in allowed_values: # noqa: E501
|
||||
raise ValueError(
|
||||
"Invalid value for `enum_integer` ({0}), must be one of {1}" # noqa: E501
|
||||
.format(enum_integer, allowed_values)
|
||||
@@ -182,7 +187,7 @@ class EnumTest(object):
|
||||
:type: float
|
||||
"""
|
||||
allowed_values = [1.1, -1.2] # noqa: E501
|
||||
if enum_number not in allowed_values:
|
||||
if self.local_vars_configuration.client_side_validation and enum_number not in allowed_values: # noqa: E501
|
||||
raise ValueError(
|
||||
"Invalid value for `enum_number` ({0}), must be one of {1}" # noqa: E501
|
||||
.format(enum_number, allowed_values)
|
||||
@@ -311,8 +316,11 @@ class EnumTest(object):
|
||||
if not isinstance(other, EnumTest):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, EnumTest):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class File(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class File(object):
|
||||
'source_uri': 'sourceURI'
|
||||
}
|
||||
|
||||
def __init__(self, source_uri=None): # noqa: E501
|
||||
def __init__(self, source_uri=None, local_vars_configuration=None): # noqa: E501
|
||||
"""File - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._source_uri = None
|
||||
self.discriminator = None
|
||||
@@ -107,8 +112,11 @@ class File(object):
|
||||
if not isinstance(other, File):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, File):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class FileSchemaTestClass(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class FileSchemaTestClass(object):
|
||||
'files': 'files'
|
||||
}
|
||||
|
||||
def __init__(self, file=None, files=None): # noqa: E501
|
||||
def __init__(self, file=None, files=None, local_vars_configuration=None): # noqa: E501
|
||||
"""FileSchemaTestClass - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._file = None
|
||||
self._files = None
|
||||
@@ -131,8 +136,11 @@ class FileSchemaTestClass(object):
|
||||
if not isinstance(other, FileSchemaTestClass):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, FileSchemaTestClass):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Foo(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class Foo(object):
|
||||
'bar': 'bar'
|
||||
}
|
||||
|
||||
def __init__(self, bar='bar'): # noqa: E501
|
||||
def __init__(self, bar='bar', local_vars_configuration=None): # noqa: E501
|
||||
"""Foo - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._bar = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class Foo(object):
|
||||
if not isinstance(other, Foo):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Foo):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class FormatTest(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -66,8 +68,11 @@ class FormatTest(object):
|
||||
'pattern_with_digits_and_delimiter': 'pattern_with_digits_and_delimiter'
|
||||
}
|
||||
|
||||
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, byte=None, binary=None, date=None, date_time=None, uuid=None, password=None, pattern_with_digits=None, pattern_with_digits_and_delimiter=None): # noqa: E501
|
||||
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, byte=None, binary=None, date=None, date_time=None, uuid=None, password=None, pattern_with_digits=None, pattern_with_digits_and_delimiter=None, local_vars_configuration=None): # noqa: E501
|
||||
"""FormatTest - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._integer = None
|
||||
self._int32 = None
|
||||
@@ -131,9 +136,11 @@ class FormatTest(object):
|
||||
:param integer: The integer of this FormatTest. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if integer is not None and integer > 100: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
integer is not None and integer > 100): # noqa: E501
|
||||
raise ValueError("Invalid value for `integer`, must be a value less than or equal to `100`") # noqa: E501
|
||||
if integer is not None and integer < 10: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
integer is not None and integer < 10): # noqa: E501
|
||||
raise ValueError("Invalid value for `integer`, must be a value greater than or equal to `10`") # noqa: E501
|
||||
|
||||
self._integer = integer
|
||||
@@ -156,9 +163,11 @@ class FormatTest(object):
|
||||
:param int32: The int32 of this FormatTest. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if int32 is not None and int32 > 200: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
int32 is not None and int32 > 200): # noqa: E501
|
||||
raise ValueError("Invalid value for `int32`, must be a value less than or equal to `200`") # noqa: E501
|
||||
if int32 is not None and int32 < 20: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
int32 is not None and int32 < 20): # noqa: E501
|
||||
raise ValueError("Invalid value for `int32`, must be a value greater than or equal to `20`") # noqa: E501
|
||||
|
||||
self._int32 = int32
|
||||
@@ -202,11 +211,13 @@ class FormatTest(object):
|
||||
:param number: The number of this FormatTest. # noqa: E501
|
||||
:type: float
|
||||
"""
|
||||
if number is None:
|
||||
if self.local_vars_configuration.client_side_validation and number is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `number`, must not be `None`") # noqa: E501
|
||||
if number is not None and number > 543.2: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
number is not None and number > 543.2): # noqa: E501
|
||||
raise ValueError("Invalid value for `number`, must be a value less than or equal to `543.2`") # noqa: E501
|
||||
if number is not None and number < 32.1: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
number is not None and number < 32.1): # noqa: E501
|
||||
raise ValueError("Invalid value for `number`, must be a value greater than or equal to `32.1`") # noqa: E501
|
||||
|
||||
self._number = number
|
||||
@@ -229,9 +240,11 @@ class FormatTest(object):
|
||||
:param float: The float of this FormatTest. # noqa: E501
|
||||
:type: float
|
||||
"""
|
||||
if float is not None and float > 987.6: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
float is not None and float > 987.6): # noqa: E501
|
||||
raise ValueError("Invalid value for `float`, must be a value less than or equal to `987.6`") # noqa: E501
|
||||
if float is not None and float < 54.3: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
float is not None and float < 54.3): # noqa: E501
|
||||
raise ValueError("Invalid value for `float`, must be a value greater than or equal to `54.3`") # noqa: E501
|
||||
|
||||
self._float = float
|
||||
@@ -254,9 +267,11 @@ class FormatTest(object):
|
||||
:param double: The double of this FormatTest. # noqa: E501
|
||||
:type: float
|
||||
"""
|
||||
if double is not None and double > 123.4: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
double is not None and double > 123.4): # noqa: E501
|
||||
raise ValueError("Invalid value for `double`, must be a value less than or equal to `123.4`") # noqa: E501
|
||||
if double is not None and double < 67.8: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
double is not None and double < 67.8): # noqa: E501
|
||||
raise ValueError("Invalid value for `double`, must be a value greater than or equal to `67.8`") # noqa: E501
|
||||
|
||||
self._double = double
|
||||
@@ -279,7 +294,8 @@ class FormatTest(object):
|
||||
:param string: The string of this FormatTest. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if string is not None and not re.search(r'[a-z]', string, flags=re.IGNORECASE): # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
string is not None and not re.search(r'[a-z]', string, flags=re.IGNORECASE)): # noqa: E501
|
||||
raise ValueError(r"Invalid value for `string`, must be a follow pattern or equal to `/[a-z]/i`") # noqa: E501
|
||||
|
||||
self._string = string
|
||||
@@ -302,7 +318,7 @@ class FormatTest(object):
|
||||
:param byte: The byte of this FormatTest. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if byte is None:
|
||||
if self.local_vars_configuration.client_side_validation and byte is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `byte`, must not be `None`") # noqa: E501
|
||||
|
||||
self._byte = byte
|
||||
@@ -346,7 +362,7 @@ class FormatTest(object):
|
||||
:param date: The date of this FormatTest. # noqa: E501
|
||||
:type: date
|
||||
"""
|
||||
if date is None:
|
||||
if self.local_vars_configuration.client_side_validation and date is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501
|
||||
|
||||
self._date = date
|
||||
@@ -411,11 +427,13 @@ class FormatTest(object):
|
||||
:param password: The password of this FormatTest. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if password is None:
|
||||
if self.local_vars_configuration.client_side_validation and password is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501
|
||||
if password is not None and len(password) > 64:
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
password is not None and len(password) > 64):
|
||||
raise ValueError("Invalid value for `password`, length must be less than or equal to `64`") # noqa: E501
|
||||
if password is not None and len(password) < 10:
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
password is not None and len(password) < 10):
|
||||
raise ValueError("Invalid value for `password`, length must be greater than or equal to `10`") # noqa: E501
|
||||
|
||||
self._password = password
|
||||
@@ -440,7 +458,8 @@ class FormatTest(object):
|
||||
:param pattern_with_digits: The pattern_with_digits of this FormatTest. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if pattern_with_digits is not None and not re.search(r'^\d{10}$', pattern_with_digits): # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
pattern_with_digits is not None and not re.search(r'^\d{10}$', pattern_with_digits)): # noqa: E501
|
||||
raise ValueError(r"Invalid value for `pattern_with_digits`, must be a follow pattern or equal to `/^\d{10}$/`") # noqa: E501
|
||||
|
||||
self._pattern_with_digits = pattern_with_digits
|
||||
@@ -465,7 +484,8 @@ class FormatTest(object):
|
||||
:param pattern_with_digits_and_delimiter: The pattern_with_digits_and_delimiter of this FormatTest. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if pattern_with_digits_and_delimiter is not None and not re.search(r'^image_\d{1,3}$', pattern_with_digits_and_delimiter, flags=re.IGNORECASE): # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
pattern_with_digits_and_delimiter is not None and not re.search(r'^image_\d{1,3}$', pattern_with_digits_and_delimiter, flags=re.IGNORECASE)): # noqa: E501
|
||||
raise ValueError(r"Invalid value for `pattern_with_digits_and_delimiter`, must be a follow pattern or equal to `/^image_\d{1,3}$/i`") # noqa: E501
|
||||
|
||||
self._pattern_with_digits_and_delimiter = pattern_with_digits_and_delimiter
|
||||
@@ -507,8 +527,11 @@ class FormatTest(object):
|
||||
if not isinstance(other, FormatTest):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, FormatTest):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class HasOnlyReadOnly(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class HasOnlyReadOnly(object):
|
||||
'foo': 'foo'
|
||||
}
|
||||
|
||||
def __init__(self, bar=None, foo=None): # noqa: E501
|
||||
def __init__(self, bar=None, foo=None, local_vars_configuration=None): # noqa: E501
|
||||
"""HasOnlyReadOnly - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._bar = None
|
||||
self._foo = None
|
||||
@@ -131,8 +136,11 @@ class HasOnlyReadOnly(object):
|
||||
if not isinstance(other, HasOnlyReadOnly):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, HasOnlyReadOnly):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class HealthCheckResult(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class HealthCheckResult(object):
|
||||
'nullable_message': 'NullableMessage'
|
||||
}
|
||||
|
||||
def __init__(self, nullable_message=None): # noqa: E501
|
||||
def __init__(self, nullable_message=None, local_vars_configuration=None): # noqa: E501
|
||||
"""HealthCheckResult - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._nullable_message = None
|
||||
self.discriminator = None
|
||||
@@ -104,8 +109,11 @@ class HealthCheckResult(object):
|
||||
if not isinstance(other, HealthCheckResult):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, HealthCheckResult):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class InlineObject(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class InlineObject(object):
|
||||
'status': 'status'
|
||||
}
|
||||
|
||||
def __init__(self, name=None, status=None): # noqa: E501
|
||||
def __init__(self, name=None, status=None, local_vars_configuration=None): # noqa: E501
|
||||
"""InlineObject - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._name = None
|
||||
self._status = None
|
||||
@@ -135,8 +140,11 @@ class InlineObject(object):
|
||||
if not isinstance(other, InlineObject):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, InlineObject):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class InlineObject1(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class InlineObject1(object):
|
||||
'file': 'file'
|
||||
}
|
||||
|
||||
def __init__(self, additional_metadata=None, file=None): # noqa: E501
|
||||
def __init__(self, additional_metadata=None, file=None, local_vars_configuration=None): # noqa: E501
|
||||
"""InlineObject1 - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._additional_metadata = None
|
||||
self._file = None
|
||||
@@ -135,8 +140,11 @@ class InlineObject1(object):
|
||||
if not isinstance(other, InlineObject1):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, InlineObject1):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class InlineObject2(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class InlineObject2(object):
|
||||
'enum_form_string': 'enum_form_string'
|
||||
}
|
||||
|
||||
def __init__(self, enum_form_string_array=None, enum_form_string='-efg'): # noqa: E501
|
||||
def __init__(self, enum_form_string_array=None, enum_form_string='-efg', local_vars_configuration=None): # noqa: E501
|
||||
"""InlineObject2 - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._enum_form_string_array = None
|
||||
self._enum_form_string = None
|
||||
@@ -73,7 +78,8 @@ class InlineObject2(object):
|
||||
:type: list[str]
|
||||
"""
|
||||
allowed_values = [">", "$"] # noqa: E501
|
||||
if not set(enum_form_string_array).issubset(set(allowed_values)):
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
not set(enum_form_string_array).issubset(set(allowed_values))):
|
||||
raise ValueError(
|
||||
"Invalid values for `enum_form_string_array` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||
.format(", ".join(map(str, set(enum_form_string_array) - set(allowed_values))), # noqa: E501
|
||||
@@ -103,7 +109,7 @@ class InlineObject2(object):
|
||||
:type: str
|
||||
"""
|
||||
allowed_values = ["_abc", "-efg", "(xyz)"] # noqa: E501
|
||||
if enum_form_string not in allowed_values:
|
||||
if self.local_vars_configuration.client_side_validation and enum_form_string not in allowed_values: # noqa: E501
|
||||
raise ValueError(
|
||||
"Invalid value for `enum_form_string` ({0}), must be one of {1}" # noqa: E501
|
||||
.format(enum_form_string, allowed_values)
|
||||
@@ -148,8 +154,11 @@ class InlineObject2(object):
|
||||
if not isinstance(other, InlineObject2):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, InlineObject2):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class InlineObject3(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -64,8 +66,11 @@ class InlineObject3(object):
|
||||
'callback': 'callback'
|
||||
}
|
||||
|
||||
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, pattern_without_delimiter=None, byte=None, binary=None, date=None, date_time=None, password=None, callback=None): # noqa: E501
|
||||
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, pattern_without_delimiter=None, byte=None, binary=None, date=None, date_time=None, password=None, callback=None, local_vars_configuration=None): # noqa: E501
|
||||
"""InlineObject3 - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._integer = None
|
||||
self._int32 = None
|
||||
@@ -128,9 +133,11 @@ class InlineObject3(object):
|
||||
:param integer: The integer of this InlineObject3. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if integer is not None and integer > 100: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
integer is not None and integer > 100): # noqa: E501
|
||||
raise ValueError("Invalid value for `integer`, must be a value less than or equal to `100`") # noqa: E501
|
||||
if integer is not None and integer < 10: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
integer is not None and integer < 10): # noqa: E501
|
||||
raise ValueError("Invalid value for `integer`, must be a value greater than or equal to `10`") # noqa: E501
|
||||
|
||||
self._integer = integer
|
||||
@@ -155,9 +162,11 @@ class InlineObject3(object):
|
||||
:param int32: The int32 of this InlineObject3. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if int32 is not None and int32 > 200: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
int32 is not None and int32 > 200): # noqa: E501
|
||||
raise ValueError("Invalid value for `int32`, must be a value less than or equal to `200`") # noqa: E501
|
||||
if int32 is not None and int32 < 20: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
int32 is not None and int32 < 20): # noqa: E501
|
||||
raise ValueError("Invalid value for `int32`, must be a value greater than or equal to `20`") # noqa: E501
|
||||
|
||||
self._int32 = int32
|
||||
@@ -205,11 +214,13 @@ class InlineObject3(object):
|
||||
:param number: The number of this InlineObject3. # noqa: E501
|
||||
:type: float
|
||||
"""
|
||||
if number is None:
|
||||
if self.local_vars_configuration.client_side_validation and number is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `number`, must not be `None`") # noqa: E501
|
||||
if number is not None and number > 543.2: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
number is not None and number > 543.2): # noqa: E501
|
||||
raise ValueError("Invalid value for `number`, must be a value less than or equal to `543.2`") # noqa: E501
|
||||
if number is not None and number < 32.1: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
number is not None and number < 32.1): # noqa: E501
|
||||
raise ValueError("Invalid value for `number`, must be a value greater than or equal to `32.1`") # noqa: E501
|
||||
|
||||
self._number = number
|
||||
@@ -234,7 +245,8 @@ class InlineObject3(object):
|
||||
:param float: The float of this InlineObject3. # noqa: E501
|
||||
:type: float
|
||||
"""
|
||||
if float is not None and float > 987.6: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
float is not None and float > 987.6): # noqa: E501
|
||||
raise ValueError("Invalid value for `float`, must be a value less than or equal to `987.6`") # noqa: E501
|
||||
|
||||
self._float = float
|
||||
@@ -259,11 +271,13 @@ class InlineObject3(object):
|
||||
:param double: The double of this InlineObject3. # noqa: E501
|
||||
:type: float
|
||||
"""
|
||||
if double is None:
|
||||
if self.local_vars_configuration.client_side_validation and double is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `double`, must not be `None`") # noqa: E501
|
||||
if double is not None and double > 123.4: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
double is not None and double > 123.4): # noqa: E501
|
||||
raise ValueError("Invalid value for `double`, must be a value less than or equal to `123.4`") # noqa: E501
|
||||
if double is not None and double < 67.8: # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
double is not None and double < 67.8): # noqa: E501
|
||||
raise ValueError("Invalid value for `double`, must be a value greater than or equal to `67.8`") # noqa: E501
|
||||
|
||||
self._double = double
|
||||
@@ -288,7 +302,8 @@ class InlineObject3(object):
|
||||
:param string: The string of this InlineObject3. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if string is not None and not re.search(r'[a-z]', string, flags=re.IGNORECASE): # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
string is not None and not re.search(r'[a-z]', string, flags=re.IGNORECASE)): # noqa: E501
|
||||
raise ValueError(r"Invalid value for `string`, must be a follow pattern or equal to `/[a-z]/i`") # noqa: E501
|
||||
|
||||
self._string = string
|
||||
@@ -313,9 +328,10 @@ class InlineObject3(object):
|
||||
:param pattern_without_delimiter: The pattern_without_delimiter of this InlineObject3. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if pattern_without_delimiter is None:
|
||||
if self.local_vars_configuration.client_side_validation and pattern_without_delimiter is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `pattern_without_delimiter`, must not be `None`") # noqa: E501
|
||||
if pattern_without_delimiter is not None and not re.search(r'^[A-Z].*', pattern_without_delimiter): # noqa: E501
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
pattern_without_delimiter is not None and not re.search(r'^[A-Z].*', pattern_without_delimiter)): # noqa: E501
|
||||
raise ValueError(r"Invalid value for `pattern_without_delimiter`, must be a follow pattern or equal to `/^[A-Z].*/`") # noqa: E501
|
||||
|
||||
self._pattern_without_delimiter = pattern_without_delimiter
|
||||
@@ -340,7 +356,7 @@ class InlineObject3(object):
|
||||
:param byte: The byte of this InlineObject3. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if byte is None:
|
||||
if self.local_vars_configuration.client_side_validation and byte is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `byte`, must not be `None`") # noqa: E501
|
||||
|
||||
self._byte = byte
|
||||
@@ -434,9 +450,11 @@ class InlineObject3(object):
|
||||
:param password: The password of this InlineObject3. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if password is not None and len(password) > 64:
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
password is not None and len(password) > 64):
|
||||
raise ValueError("Invalid value for `password`, length must be less than or equal to `64`") # noqa: E501
|
||||
if password is not None and len(password) < 10:
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
password is not None and len(password) < 10):
|
||||
raise ValueError("Invalid value for `password`, length must be greater than or equal to `10`") # noqa: E501
|
||||
|
||||
self._password = password
|
||||
@@ -501,8 +519,11 @@ class InlineObject3(object):
|
||||
if not isinstance(other, InlineObject3):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, InlineObject3):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class InlineObject4(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class InlineObject4(object):
|
||||
'param2': 'param2'
|
||||
}
|
||||
|
||||
def __init__(self, param=None, param2=None): # noqa: E501
|
||||
def __init__(self, param=None, param2=None, local_vars_configuration=None): # noqa: E501
|
||||
"""InlineObject4 - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._param = None
|
||||
self._param2 = None
|
||||
@@ -70,7 +75,7 @@ class InlineObject4(object):
|
||||
:param param: The param of this InlineObject4. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if param is None:
|
||||
if self.local_vars_configuration.client_side_validation and param is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `param`, must not be `None`") # noqa: E501
|
||||
|
||||
self._param = param
|
||||
@@ -95,7 +100,7 @@ class InlineObject4(object):
|
||||
:param param2: The param2 of this InlineObject4. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if param2 is None:
|
||||
if self.local_vars_configuration.client_side_validation and param2 is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `param2`, must not be `None`") # noqa: E501
|
||||
|
||||
self._param2 = param2
|
||||
@@ -137,8 +142,11 @@ class InlineObject4(object):
|
||||
if not isinstance(other, InlineObject4):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, InlineObject4):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class InlineObject5(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class InlineObject5(object):
|
||||
'required_file': 'requiredFile'
|
||||
}
|
||||
|
||||
def __init__(self, additional_metadata=None, required_file=None): # noqa: E501
|
||||
def __init__(self, additional_metadata=None, required_file=None, local_vars_configuration=None): # noqa: E501
|
||||
"""InlineObject5 - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._additional_metadata = None
|
||||
self._required_file = None
|
||||
@@ -94,7 +99,7 @@ class InlineObject5(object):
|
||||
:param required_file: The required_file of this InlineObject5. # noqa: E501
|
||||
:type: file
|
||||
"""
|
||||
if required_file is None:
|
||||
if self.local_vars_configuration.client_side_validation and required_file is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `required_file`, must not be `None`") # noqa: E501
|
||||
|
||||
self._required_file = required_file
|
||||
@@ -136,8 +141,11 @@ class InlineObject5(object):
|
||||
if not isinstance(other, InlineObject5):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, InlineObject5):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class InlineResponseDefault(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class InlineResponseDefault(object):
|
||||
'string': 'string'
|
||||
}
|
||||
|
||||
def __init__(self, string=None): # noqa: E501
|
||||
def __init__(self, string=None, local_vars_configuration=None): # noqa: E501
|
||||
"""InlineResponseDefault - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._string = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class InlineResponseDefault(object):
|
||||
if not isinstance(other, InlineResponseDefault):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, InlineResponseDefault):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class List(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class List(object):
|
||||
'_123_list': '123-list'
|
||||
}
|
||||
|
||||
def __init__(self, _123_list=None): # noqa: E501
|
||||
def __init__(self, _123_list=None, local_vars_configuration=None): # noqa: E501
|
||||
"""List - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self.__123_list = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class List(object):
|
||||
if not isinstance(other, List):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, List):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class MapTest(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -44,8 +46,11 @@ class MapTest(object):
|
||||
'indirect_map': 'indirect_map'
|
||||
}
|
||||
|
||||
def __init__(self, map_map_of_string=None, map_of_enum_string=None, direct_map=None, indirect_map=None): # noqa: E501
|
||||
def __init__(self, map_map_of_string=None, map_of_enum_string=None, direct_map=None, indirect_map=None, local_vars_configuration=None): # noqa: E501
|
||||
"""MapTest - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._map_map_of_string = None
|
||||
self._map_of_enum_string = None
|
||||
@@ -102,7 +107,8 @@ class MapTest(object):
|
||||
:type: dict(str, str)
|
||||
"""
|
||||
allowed_values = ["UPPER", "lower"] # noqa: E501
|
||||
if not set(map_of_enum_string.keys()).issubset(set(allowed_values)):
|
||||
if (self.local_vars_configuration.client_side_validation and
|
||||
not set(map_of_enum_string.keys()).issubset(set(allowed_values))):
|
||||
raise ValueError(
|
||||
"Invalid keys in `map_of_enum_string` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||
.format(", ".join(map(str, set(map_of_enum_string.keys()) - set(allowed_values))), # noqa: E501
|
||||
@@ -190,8 +196,11 @@ class MapTest(object):
|
||||
if not isinstance(other, MapTest):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, MapTest):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -42,8 +44,11 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||
'map': 'map'
|
||||
}
|
||||
|
||||
def __init__(self, uuid=None, date_time=None, map=None): # noqa: E501
|
||||
def __init__(self, uuid=None, date_time=None, map=None, local_vars_configuration=None): # noqa: E501
|
||||
"""MixedPropertiesAndAdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._uuid = None
|
||||
self._date_time = None
|
||||
@@ -157,8 +162,11 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||
if not isinstance(other, MixedPropertiesAndAdditionalPropertiesClass):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, MixedPropertiesAndAdditionalPropertiesClass):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Model200Response(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class Model200Response(object):
|
||||
'_class': 'class'
|
||||
}
|
||||
|
||||
def __init__(self, name=None, _class=None): # noqa: E501
|
||||
def __init__(self, name=None, _class=None, local_vars_configuration=None): # noqa: E501
|
||||
"""Model200Response - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._name = None
|
||||
self.__class = None
|
||||
@@ -131,8 +136,11 @@ class Model200Response(object):
|
||||
if not isinstance(other, Model200Response):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Model200Response):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class ModelReturn(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class ModelReturn(object):
|
||||
'_return': 'return'
|
||||
}
|
||||
|
||||
def __init__(self, _return=None): # noqa: E501
|
||||
def __init__(self, _return=None, local_vars_configuration=None): # noqa: E501
|
||||
"""ModelReturn - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self.__return = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class ModelReturn(object):
|
||||
if not isinstance(other, ModelReturn):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, ModelReturn):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Name(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -44,8 +46,11 @@ class Name(object):
|
||||
'_123_number': '123Number'
|
||||
}
|
||||
|
||||
def __init__(self, name=None, snake_case=None, _property=None, _123_number=None): # noqa: E501
|
||||
def __init__(self, name=None, snake_case=None, _property=None, _123_number=None, local_vars_configuration=None): # noqa: E501
|
||||
"""Name - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._name = None
|
||||
self._snake_case = None
|
||||
@@ -79,7 +84,7 @@ class Name(object):
|
||||
:param name: The name of this Name. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
if name is None:
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
@@ -184,8 +189,11 @@ class Name(object):
|
||||
if not isinstance(other, Name):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Name):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class NullableClass(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -60,8 +62,11 @@ class NullableClass(object):
|
||||
'object_items_nullable': 'object_items_nullable'
|
||||
}
|
||||
|
||||
def __init__(self, integer_prop=None, number_prop=None, boolean_prop=None, string_prop=None, date_prop=None, datetime_prop=None, array_nullable_prop=None, array_and_items_nullable_prop=None, array_items_nullable=None, object_nullable_prop=None, object_and_items_nullable_prop=None, object_items_nullable=None): # noqa: E501
|
||||
def __init__(self, integer_prop=None, number_prop=None, boolean_prop=None, string_prop=None, date_prop=None, datetime_prop=None, array_nullable_prop=None, array_and_items_nullable_prop=None, array_items_nullable=None, object_nullable_prop=None, object_and_items_nullable_prop=None, object_items_nullable=None, local_vars_configuration=None): # noqa: E501
|
||||
"""NullableClass - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._integer_prop = None
|
||||
self._number_prop = None
|
||||
@@ -381,8 +386,11 @@ class NullableClass(object):
|
||||
if not isinstance(other, NullableClass):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, NullableClass):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class NumberOnly(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class NumberOnly(object):
|
||||
'just_number': 'JustNumber'
|
||||
}
|
||||
|
||||
def __init__(self, just_number=None): # noqa: E501
|
||||
def __init__(self, just_number=None, local_vars_configuration=None): # noqa: E501
|
||||
"""NumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._just_number = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class NumberOnly(object):
|
||||
if not isinstance(other, NumberOnly):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, NumberOnly):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Order(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -48,8 +50,11 @@ class Order(object):
|
||||
'complete': 'complete'
|
||||
}
|
||||
|
||||
def __init__(self, id=None, pet_id=None, quantity=None, ship_date=None, status=None, complete=False): # noqa: E501
|
||||
def __init__(self, id=None, pet_id=None, quantity=None, ship_date=None, status=None, complete=False, local_vars_configuration=None): # noqa: E501
|
||||
"""Order - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._id = None
|
||||
self._pet_id = None
|
||||
@@ -177,7 +182,7 @@ class Order(object):
|
||||
:type: str
|
||||
"""
|
||||
allowed_values = ["placed", "approved", "delivered"] # noqa: E501
|
||||
if status not in allowed_values:
|
||||
if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
|
||||
raise ValueError(
|
||||
"Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
|
||||
.format(status, allowed_values)
|
||||
@@ -243,8 +248,11 @@ class Order(object):
|
||||
if not isinstance(other, Order):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Order):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class OuterComposite(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -42,8 +44,11 @@ class OuterComposite(object):
|
||||
'my_boolean': 'my_boolean'
|
||||
}
|
||||
|
||||
def __init__(self, my_number=None, my_string=None, my_boolean=None): # noqa: E501
|
||||
def __init__(self, my_number=None, my_string=None, my_boolean=None, local_vars_configuration=None): # noqa: E501
|
||||
"""OuterComposite - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._my_number = None
|
||||
self._my_string = None
|
||||
@@ -157,8 +162,11 @@ class OuterComposite(object):
|
||||
if not isinstance(other, OuterComposite):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, OuterComposite):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class OuterEnum(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -43,8 +45,11 @@ class OuterEnum(object):
|
||||
attribute_map = {
|
||||
}
|
||||
|
||||
def __init__(self): # noqa: E501
|
||||
def __init__(self, local_vars_configuration=None): # noqa: E501
|
||||
"""OuterEnum - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
self.discriminator = None
|
||||
|
||||
def to_dict(self):
|
||||
@@ -84,8 +89,11 @@ class OuterEnum(object):
|
||||
if not isinstance(other, OuterEnum):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, OuterEnum):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class OuterEnumDefaultValue(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -43,8 +45,11 @@ class OuterEnumDefaultValue(object):
|
||||
attribute_map = {
|
||||
}
|
||||
|
||||
def __init__(self): # noqa: E501
|
||||
def __init__(self, local_vars_configuration=None): # noqa: E501
|
||||
"""OuterEnumDefaultValue - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
self.discriminator = None
|
||||
|
||||
def to_dict(self):
|
||||
@@ -84,8 +89,11 @@ class OuterEnumDefaultValue(object):
|
||||
if not isinstance(other, OuterEnumDefaultValue):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, OuterEnumDefaultValue):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class OuterEnumInteger(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -43,8 +45,11 @@ class OuterEnumInteger(object):
|
||||
attribute_map = {
|
||||
}
|
||||
|
||||
def __init__(self): # noqa: E501
|
||||
def __init__(self, local_vars_configuration=None): # noqa: E501
|
||||
"""OuterEnumInteger - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
self.discriminator = None
|
||||
|
||||
def to_dict(self):
|
||||
@@ -84,8 +89,11 @@ class OuterEnumInteger(object):
|
||||
if not isinstance(other, OuterEnumInteger):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, OuterEnumInteger):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class OuterEnumIntegerDefaultValue(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -43,8 +45,11 @@ class OuterEnumIntegerDefaultValue(object):
|
||||
attribute_map = {
|
||||
}
|
||||
|
||||
def __init__(self): # noqa: E501
|
||||
def __init__(self, local_vars_configuration=None): # noqa: E501
|
||||
"""OuterEnumIntegerDefaultValue - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
self.discriminator = None
|
||||
|
||||
def to_dict(self):
|
||||
@@ -84,8 +89,11 @@ class OuterEnumIntegerDefaultValue(object):
|
||||
if not isinstance(other, OuterEnumIntegerDefaultValue):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, OuterEnumIntegerDefaultValue):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Pet(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -48,8 +50,11 @@ class Pet(object):
|
||||
'status': 'status'
|
||||
}
|
||||
|
||||
def __init__(self, id=None, category=None, name=None, photo_urls=None, tags=None, status=None): # noqa: E501
|
||||
def __init__(self, id=None, category=None, name=None, photo_urls=None, tags=None, status=None, local_vars_configuration=None): # noqa: E501
|
||||
"""Pet - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._id = None
|
||||
self._category = None
|
||||
@@ -130,7 +135,7 @@ class Pet(object):
|
||||
:param name: The name of this Pet. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
if name is None:
|
||||
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||
|
||||
self._name = name
|
||||
@@ -153,7 +158,7 @@ class Pet(object):
|
||||
:param photo_urls: The photo_urls of this Pet. # noqa: E501
|
||||
:type: list[str]
|
||||
"""
|
||||
if photo_urls is None:
|
||||
if self.local_vars_configuration.client_side_validation and photo_urls is None: # noqa: E501
|
||||
raise ValueError("Invalid value for `photo_urls`, must not be `None`") # noqa: E501
|
||||
|
||||
self._photo_urls = photo_urls
|
||||
@@ -200,7 +205,7 @@ class Pet(object):
|
||||
:type: str
|
||||
"""
|
||||
allowed_values = ["available", "pending", "sold"] # noqa: E501
|
||||
if status not in allowed_values:
|
||||
if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
|
||||
raise ValueError(
|
||||
"Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
|
||||
.format(status, allowed_values)
|
||||
@@ -245,8 +250,11 @@ class Pet(object):
|
||||
if not isinstance(other, Pet):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Pet):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class ReadOnlyFirst(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class ReadOnlyFirst(object):
|
||||
'baz': 'baz'
|
||||
}
|
||||
|
||||
def __init__(self, bar=None, baz=None): # noqa: E501
|
||||
def __init__(self, bar=None, baz=None, local_vars_configuration=None): # noqa: E501
|
||||
"""ReadOnlyFirst - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._bar = None
|
||||
self._baz = None
|
||||
@@ -131,8 +136,11 @@ class ReadOnlyFirst(object):
|
||||
if not isinstance(other, ReadOnlyFirst):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, ReadOnlyFirst):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class SpecialModelName(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -38,8 +40,11 @@ class SpecialModelName(object):
|
||||
'special_property_name': '$special[property.name]'
|
||||
}
|
||||
|
||||
def __init__(self, special_property_name=None): # noqa: E501
|
||||
def __init__(self, special_property_name=None, local_vars_configuration=None): # noqa: E501
|
||||
"""SpecialModelName - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._special_property_name = None
|
||||
self.discriminator = None
|
||||
@@ -105,8 +110,11 @@ class SpecialModelName(object):
|
||||
if not isinstance(other, SpecialModelName):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, SpecialModelName):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class Tag(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -40,8 +42,11 @@ class Tag(object):
|
||||
'name': 'name'
|
||||
}
|
||||
|
||||
def __init__(self, id=None, name=None): # noqa: E501
|
||||
def __init__(self, id=None, name=None, local_vars_configuration=None): # noqa: E501
|
||||
"""Tag - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._id = None
|
||||
self._name = None
|
||||
@@ -131,8 +136,11 @@ class Tag(object):
|
||||
if not isinstance(other, Tag):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, Tag):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
@@ -15,6 +15,8 @@ import re # noqa: F401
|
||||
|
||||
import six
|
||||
|
||||
from petstore_api.configuration import Configuration
|
||||
|
||||
|
||||
class User(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
@@ -52,8 +54,11 @@ class User(object):
|
||||
'user_status': 'userStatus'
|
||||
}
|
||||
|
||||
def __init__(self, id=None, username=None, first_name=None, last_name=None, email=None, password=None, phone=None, user_status=None): # noqa: E501
|
||||
def __init__(self, id=None, username=None, first_name=None, last_name=None, email=None, password=None, phone=None, user_status=None, local_vars_configuration=None): # noqa: E501
|
||||
"""User - a model defined in OpenAPI""" # noqa: E501
|
||||
if local_vars_configuration is None:
|
||||
local_vars_configuration = Configuration()
|
||||
self.local_vars_configuration = local_vars_configuration
|
||||
|
||||
self._id = None
|
||||
self._username = None
|
||||
@@ -289,8 +294,11 @@ class User(object):
|
||||
if not isinstance(other, User):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
return self.to_dict() == other.to_dict()
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
if not isinstance(other, User):
|
||||
return True
|
||||
|
||||
return self.to_dict() != other.to_dict()
|
||||
|
||||
Reference in New Issue
Block a user