hcloud-go icon indicating copy to clipboard operation
hcloud-go copied to clipboard

feat!: update "Pricings" field to "Prices"

Open apricote opened this issue 4 months ago • 3 comments

TL;DR

The naming is inconsistent between hcloud-go and the API.

Affects these resources:

  • Server Types
  • Load Balancer Types
  • Storage Box Types

This is a breaking change.

Expected behavior

.

apricote avatar Aug 06 '25 08:08 apricote

Does this have to be a breaking change? Could we make it backward compatible until we release the next major version?

jooola avatar Aug 06 '25 09:08 jooola

We could add both fields, but I feel that this confuses users even more than a single field with a slightly wrong name.

apricote avatar Aug 06 '25 09:08 apricote

We could add both fields, but I feel that this confuses users even more than a single field with a slightly wrong name.

This is probably something that documentation and field deprecation note can fix.

Could we make it backward compatible until we release the next major version?

For existing users of the library, this will reduce the migration guide for the next major release.

jooola avatar Aug 06 '25 09:08 jooola