diff --git a/.gitignore b/.gitignore index 1e0417f..da9c3dc 100644 --- a/.gitignore +++ b/.gitignore @@ -74,3 +74,4 @@ target/ src/workato_platform_cli/_version.py +.workato-ignore diff --git a/openapitools.json b/openapitools.json index a82623d..8244df4 100644 --- a/openapitools.json +++ b/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "7.14.0" + "version": "7.16.0" } } diff --git a/src/workato_platform_cli/client/workato_api/docs/User.md b/src/workato_platform_cli/client/workato_api/docs/User.md index dadf663..da01a7f 100644 --- a/src/workato_platform_cli/client/workato_api/docs/User.md +++ b/src/workato_platform_cli/client/workato_api/docs/User.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **interested_applications** | **List[str]** | | [optional] **company_name** | **str** | | **location** | **str** | | -**last_seen** | **datetime** | | +**last_seen** | **datetime** | | [optional] **contact_phone** | **str** | | [optional] **contact_email** | **str** | | [optional] **about_me** | **str** | | [optional] diff --git a/src/workato_platform_cli/client/workato_api/models/user.py b/src/workato_platform_cli/client/workato_api/models/user.py index 6c05427..dddd0c2 100644 --- a/src/workato_platform_cli/client/workato_api/models/user.py +++ b/src/workato_platform_cli/client/workato_api/models/user.py @@ -39,7 +39,7 @@ class User(BaseModel): interested_applications: Optional[List[StrictStr]] = None company_name: Optional[StrictStr] location: Optional[StrictStr] - last_seen: datetime + last_seen: Optional[datetime] = None contact_phone: Optional[StrictStr] = None contact_email: Optional[StrictStr] = None about_me: Optional[StrictStr] = None @@ -98,6 +98,11 @@ def to_dict(self) -> Dict[str, Any]: if self.location is None and "location" in self.model_fields_set: _dict['location'] = None + # set to None if last_seen (nullable) is None + # and model_fields_set contains the field + if self.last_seen is None and "last_seen" in self.model_fields_set: + _dict['last_seen'] = None + # set to None if contact_phone (nullable) is None # and model_fields_set contains the field if self.contact_phone is None and "contact_phone" in self.model_fields_set: diff --git a/workato-api-spec.yaml b/workato-api-spec.yaml index 60257ab..f94b3f3 100644 --- a/workato-api-spec.yaml +++ b/workato-api-spec.yaml @@ -1469,7 +1469,6 @@ components: - recipes_count - company_name - location - - last_seen - email - active_recipes_count - root_folder_id @@ -1518,6 +1517,7 @@ components: last_seen: type: string format: date-time + nullable: true example: "2020-08-23T23:22:24.329-07:00" contact_phone: type: string