OpsLevel / opslevel-go

A Go client for interacting with OpsLevel
MIT License
5 stars 12 forks source link

introduce `NullableValue[T]`, allow unsetting fields on a service with `ServiceUpdateInputV2` #397

Closed taimoorgit closed 2 months ago

taimoorgit commented 2 months ago

Issues

https://github.com/OpsLevel/team-platform/issues/356

Why?

We cannot unset tier alias, lifecycle alias in services because it can't tell the difference between those attributes being set to null or not included (since those fields are *string with omitempty).

This uses the same pattern as in IdentifierInput where if ID and alias are not set, it will JSON marshal into null.

Changelog