Skip to content

Commit

Permalink
fix: errors found in referencing discriminator() and openapi_types()
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkoke committed Sep 16, 2021
1 parent bc6ecae commit 94e4440
Show file tree
Hide file tree
Showing 16 changed files with 61 additions and 151 deletions.
4 changes: 2 additions & 2 deletions sajari_client/model/query_aggregate_result_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class QueryAggregateResultAnalysis(ModelNormal):
_nullable = False

@cached_property
def openapi_types():
def openapi_types(self):
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Expand All @@ -80,7 +80,7 @@ def openapi_types():
}

@cached_property
def discriminator():
def discriminator(self):
return None

attribute_map = {
Expand Down
14 changes: 4 additions & 10 deletions sajari_client/model/query_aggregate_result_buckets_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class QueryAggregateResultBucketsBucket(ModelNormal):
_nullable = False

@cached_property
def openapi_types():
def openapi_types(self):
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Expand All @@ -77,7 +77,7 @@ def openapi_types():
}

@cached_property
def discriminator():
def discriminator(self):
return None

attribute_map = {
Expand All @@ -87,14 +87,8 @@ def discriminator():

_composed_schemas = {}

required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
required_properties = {'_data_store', '_check_type', '_spec_property_naming', '_path_to_item', '_configuration',
'_visited_composed_classes'}

@convert_js_args_to_python_args
def __init__(self, *args, **kwargs): # noqa: E501
Expand Down
14 changes: 4 additions & 10 deletions sajari_client/model/query_aggregate_result_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class QueryAggregateResultCount(ModelNormal):
_nullable = False

@cached_property
def openapi_types():
def openapi_types(self):
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Expand All @@ -76,7 +76,7 @@ def openapi_types():
}

@cached_property
def discriminator():
def discriminator(self):
return None

attribute_map = {
Expand All @@ -85,14 +85,8 @@ def discriminator():

_composed_schemas = {}

required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
required_properties = {'_data_store', '_check_type', '_spec_property_naming', '_path_to_item', '_configuration',
'_visited_composed_classes'}

@convert_js_args_to_python_args
def __init__(self, *args, **kwargs): # noqa: E501
Expand Down
14 changes: 4 additions & 10 deletions sajari_client/model/query_aggregate_result_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class QueryAggregateResultDate(ModelNormal):
_nullable = False

@cached_property
def openapi_types():
def openapi_types(self):
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Expand All @@ -76,7 +76,7 @@ def openapi_types():
}

@cached_property
def discriminator():
def discriminator(self):
return None

attribute_map = {
Expand All @@ -85,14 +85,8 @@ def discriminator():

_composed_schemas = {}

required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
required_properties = {'_data_store', '_check_type', '_spec_property_naming', '_path_to_item', '_configuration',
'_visited_composed_classes'}

@convert_js_args_to_python_args
def __init__(self, *args, **kwargs): # noqa: E501
Expand Down
14 changes: 4 additions & 10 deletions sajari_client/model/query_aggregate_result_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class QueryAggregateResultMetric(ModelNormal):
_nullable = False

@cached_property
def openapi_types():
def openapi_types(self):
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Expand All @@ -76,7 +76,7 @@ def openapi_types():
}

@cached_property
def discriminator():
def discriminator(self):
return None

attribute_map = {
Expand All @@ -85,14 +85,8 @@ def discriminator():

_composed_schemas = {}

required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
required_properties = {'_data_store', '_check_type', '_spec_property_naming', '_path_to_item', '_configuration',
'_visited_composed_classes'}

@convert_js_args_to_python_args
def __init__(self, *args, **kwargs): # noqa: E501
Expand Down
14 changes: 4 additions & 10 deletions sajari_client/model/query_collection_request_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class QueryCollectionRequestPipeline(ModelNormal):
_nullable = False

@cached_property
def openapi_types():
def openapi_types(self):
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Expand All @@ -77,7 +77,7 @@ def openapi_types():
}

@cached_property
def discriminator():
def discriminator(self):
return None

attribute_map = {
Expand All @@ -87,14 +87,8 @@ def discriminator():

_composed_schemas = {}

required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
required_properties = {'_data_store', '_check_type', '_spec_property_naming', '_path_to_item', '_configuration',
'_visited_composed_classes'}

@convert_js_args_to_python_args
def __init__(self, name, *args, **kwargs): # noqa: E501
Expand Down
14 changes: 4 additions & 10 deletions sajari_client/model/query_collection_request_tracking_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class QueryCollectionRequestTrackingType(ModelSimple):
_nullable = False

@cached_property
def openapi_types():
def openapi_types(self):
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Expand All @@ -78,21 +78,15 @@ def openapi_types():
}

@cached_property
def discriminator():
def discriminator(self):
return None

attribute_map = {}

_composed_schemas = None

required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
required_properties = {'_data_store', '_check_type', '_spec_property_naming', '_path_to_item', '_configuration',
'_visited_composed_classes'}

@convert_js_args_to_python_args
def __init__(self, *args, **kwargs):
Expand Down
14 changes: 4 additions & 10 deletions sajari_client/model/query_collection_response_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class QueryCollectionResponsePipeline(ModelNormal):
_nullable = False

@cached_property
def openapi_types():
def openapi_types(self):
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Expand All @@ -77,7 +77,7 @@ def openapi_types():
}

@cached_property
def discriminator():
def discriminator(self):
return None

attribute_map = {
Expand All @@ -87,14 +87,8 @@ def discriminator():

_composed_schemas = {}

required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
required_properties = {'_data_store', '_check_type', '_spec_property_naming', '_path_to_item', '_configuration',
'_visited_composed_classes'}

@convert_js_args_to_python_args
def __init__(self, *args, **kwargs): # noqa: E501
Expand Down
14 changes: 4 additions & 10 deletions sajari_client/model/query_result_token_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class QueryResultTokenClick(ModelNormal):
_nullable = False

@cached_property
def openapi_types():
def openapi_types(self):
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Expand All @@ -76,7 +76,7 @@ def openapi_types():
}

@cached_property
def discriminator():
def discriminator(self):
return None

attribute_map = {
Expand All @@ -85,14 +85,8 @@ def discriminator():

_composed_schemas = {}

required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
required_properties = {'_data_store', '_check_type', '_spec_property_naming', '_path_to_item', '_configuration',
'_visited_composed_classes'}

@convert_js_args_to_python_args
def __init__(self, *args, **kwargs): # noqa: E501
Expand Down
14 changes: 4 additions & 10 deletions sajari_client/model/query_result_token_pos_neg.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class QueryResultTokenPosNeg(ModelNormal):
_nullable = False

@cached_property
def openapi_types():
def openapi_types(self):
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Expand All @@ -77,7 +77,7 @@ def openapi_types():
}

@cached_property
def discriminator():
def discriminator(self):
return None

attribute_map = {
Expand All @@ -87,14 +87,8 @@ def discriminator():

_composed_schemas = {}

required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
required_properties = {'_data_store', '_check_type', '_spec_property_naming', '_path_to_item', '_configuration',
'_visited_composed_classes'}

@convert_js_args_to_python_args
def __init__(self, *args, **kwargs): # noqa: E501
Expand Down
14 changes: 4 additions & 10 deletions sajari_client/model/record_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class RecordKey(ModelNormal):
_nullable = False

@cached_property
def openapi_types():
def openapi_types(self):
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Expand All @@ -77,7 +77,7 @@ def openapi_types():
}

@cached_property
def discriminator():
def discriminator(self):
return None

attribute_map = {
Expand All @@ -87,14 +87,8 @@ def discriminator():

_composed_schemas = {}

required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
required_properties = {'_data_store', '_check_type', '_spec_property_naming', '_path_to_item', '_configuration',
'_visited_composed_classes'}

@convert_js_args_to_python_args
def __init__(self, field, value, *args, **kwargs): # noqa: E501
Expand Down
Loading

0 comments on commit 94e4440

Please sign in to comment.