Skip to content

Commit

Permalink
Support nullable edge array
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Aug 14, 2024
1 parent 7d87b22 commit 2b4dbad
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "stadiamaps"
version = "3.2.0"
version = "3.2.1"
description = "Stadia Maps Geospatial APIs"
authors = ["Stadia Maps Support <support@stadiamaps.com>"]
license = "BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "stadiamaps"
VERSION = "3.2.0"
VERSION = "3.2.1"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion stadiamaps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
""" # noqa: E501


__version__ = "3.2.0"
__version__ = "3.2.1"

# import apis into sdk package
from stadiamaps.api.geocoding_api import GeocodingApi
Expand Down
2 changes: 1 addition & 1 deletion stadiamaps/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/3.2.0/python'
self.user_agent = 'OpenAPI-Generator/3.2.1/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion stadiamaps/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 6.6.2\n"\
"SDK Package Version: 3.2.0".\
"SDK Package Version: 3.2.1".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
10 changes: 10 additions & 0 deletions stadiamaps/models/locate_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ def to_dict(self) -> Dict[str, Any]:
for _key, _value in self.additional_properties.items():
_dict[_key] = _value

# set to None if nodes (nullable) is None
# and model_fields_set contains the field
if self.nodes is None and "nodes" in self.model_fields_set:
_dict['nodes'] = None

# set to None if edges (nullable) is None
# and model_fields_set contains the field
if self.edges is None and "edges" in self.model_fields_set:
_dict['edges'] = None

return _dict

@classmethod
Expand Down
5 changes: 5 additions & 0 deletions stadiamaps/models/trace_attributes_base_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ def to_dict(self) -> Dict[str, Any]:
for _key, _value in self.additional_properties.items():
_dict[_key] = _value

# set to None if edges (nullable) is None
# and model_fields_set contains the field
if self.edges is None and "edges" in self.model_fields_set:
_dict['edges'] = None

return _dict

@classmethod
Expand Down
5 changes: 5 additions & 0 deletions stadiamaps/models/trace_attributes_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ def to_dict(self) -> Dict[str, Any]:
for _key, _value in self.additional_properties.items():
_dict[_key] = _value

# set to None if edges (nullable) is None
# and model_fields_set contains the field
if self.edges is None and "edges" in self.model_fields_set:
_dict['edges'] = None

return _dict

@classmethod
Expand Down

0 comments on commit 2b4dbad

Please sign in to comment.