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
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

All notable changes to this project are documented in this file.

## 0.2.1

Addresses [issue #9](https://github.com/CleverCloud/clevercloud-sdk-python/issues/9),
which reported how `Domain` parses its payload and the absence of a method to
attach a domain to an application.

### Fixed

- A domain whose `fqdn` is only slashes no longer yields `Domain(domain="")`.
`Domain.from_api_response()` validated the raw field and stripped the trailing
slashes afterwards, so `{"fqdn": "/"}` passed validation. The stripped value is
what gets validated now, and it raises the same `InvalidResponseError` as a
missing field.

### Added

- `create_domain()` attaches a domain (vhost) to an application. The name is
stripped of its trailing slash before being percent-encoded, so it round-trips
with `Domain.domain` and a path suffix such as `example.com/api` stays part of
the vhost name. Deployments that answer with an empty body are supported: the
returned `Domain` then carries the requested name.

## 0.2.0

Addresses the security, correctness and design audit tracked in
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "uv_build"

[project]
name = "clevercloud-sdk"
version = "0.2.0"
version = "0.2.1"
description = "Python SDK for Clever Cloud"
readme = "README.md"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/clever_cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
)
from clever_cloud.oauth_dance import OAuthConsumer, OAuthDance, RequestToken

__version__ = "0.2.0"
__version__ = "0.2.1"

__all__ = [
"ApiTokenCredentials",
Expand Down
Loading