Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## Release (2025-MM-DD)
- `modelserving`: [v0.2.1](services/modelserving/CHANGELOG.md#v021)
- **Feature:** Extend enums in field `type` in model `Model`: `audio`, `image`
- `objectstorage`: [v1.2.0](services/objectstorage/CHANGELOG.md#v120)
- **Breaking change:** Set `expires` field in `CreateAccessKeyResponse` model to optional
- `observability`:
- [v0.10.1](services/observability/CHANGELOG.md#v0110)
- **Feature:** Add attributes `jaeger_http_traces_url`, `otlp_grpc_traces_url` and `otlp_http_traces_url` to `InstanceSensitiveData` model
Expand Down
3 changes: 3 additions & 0 deletions services/objectstorage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.2.0
- **Breaking change:** Set `expires` field in `CreateAccessKeyResponse` model to optional

## v1.1.0
- **Version**: Minimal version is now python 3.9

Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stackit-objectstorage"

[tool.poetry]
name = "stackit-objectstorage"
version = "v1.1.0"
version = "v1.2.0"
authors = [
"STACKIT Developer Tools <[email protected]>",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CreateAccessKeyResponse(BaseModel):

access_key: StrictStr = Field(description="Access key", alias="accessKey")
display_name: StrictStr = Field(description="Obfuscated access key", alias="displayName")
expires: StrictStr = Field(description="Expiration date. Null means never expires.")
expires: Optional[StrictStr] = Field(description="Expiration date. Null means never expires.")
key_id: StrictStr = Field(
description="Identifies the pair of access key and secret access key for deletion", alias="keyId"
)
Expand Down Expand Up @@ -73,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
# set to None if expires (nullable) is None
# and model_fields_set contains the field
if self.expires is None and "expires" in self.model_fields_set:
_dict["expires"] = None

return _dict

@classmethod
Expand Down