Skip to content

Commit 0591f5a

Browse files
authored
Merge pull request #29 from RevEngAI/sdk-update-v2.1.0
🤖 Update SDK to version v2.1.0
2 parents ca5b79c + 2e635ba commit 0591f5a

7 files changed

Lines changed: 13 additions & 9 deletions

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.0.4
1+
v2.1.0

docs/AppApiRestV2FunctionsResponsesFunction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Function schema used in function strings response.
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**function_id** | **int** | |
9+
**function_id** | **int** | | [optional]
1010
**function_vaddr** | **int** | Function virtual address |
1111

1212
## Example

revengai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
""" # noqa: E501
1414

1515

16-
__version__ = "v2.0.4"
16+
__version__ = "v2.1.0"
1717

1818
# Define package exports
1919
__all__ = [

revengai/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/v2.0.4/python'
93+
self.user_agent = 'OpenAPI-Generator/v2.1.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

revengai/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ def to_debug_report(self) -> str:
529529
return "Python SDK Debug Report:\n"\
530530
"OS: {env}\n"\
531531
"Python Version: {pyversion}\n"\
532-
"Version of the API: v2.0.4\n"\
533-
"SDK Package Version: v2.0.4".\
532+
"Version of the API: v2.1.0\n"\
533+
"SDK Package Version: v2.1.0".\
534534
format(env=sys.platform, pyversion=sys.version)
535535

536536
def get_host_settings(self) -> List[HostSetting]:

revengai/models/app_api_rest_v2_functions_responses_function.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
import json
1818

1919
from pydantic import BaseModel, ConfigDict, Field, StrictInt
20-
from typing import Any, ClassVar, Dict, List
20+
from typing import Any, ClassVar, Dict, List, Optional
2121
from typing import Optional, Set
2222
from typing_extensions import Self
2323

2424
class AppApiRestV2FunctionsResponsesFunction(BaseModel):
2525
"""
2626
Function schema used in function strings response.
2727
""" # noqa: E501
28-
function_id: StrictInt
28+
function_id: Optional[StrictInt] = None
2929
function_vaddr: StrictInt = Field(description="Function virtual address")
3030
__properties: ClassVar[List[str]] = ["function_id", "function_vaddr"]
3131

@@ -68,6 +68,11 @@ def to_dict(self) -> Dict[str, Any]:
6868
exclude=excluded_fields,
6969
exclude_none=True,
7070
)
71+
# set to None if function_id (nullable) is None
72+
# and model_fields_set contains the field
73+
if self.function_id is None and "function_id" in self.model_fields_set:
74+
_dict['function_id'] = None
75+
7176
return _dict
7277

7378
@classmethod

test/test_app_api_rest_v2_functions_responses_function.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def make_instance(self, include_optional) -> AppApiRestV2FunctionsResponsesFunct
3939
)
4040
else:
4141
return AppApiRestV2FunctionsResponsesFunction(
42-
function_id = 56,
4342
function_vaddr = 56,
4443
)
4544
"""

0 commit comments

Comments
 (0)