Skip to content

Commit

Permalink
deprecate ownerAlias (#281)
Browse files Browse the repository at this point in the history
* owner is now IdentifierInput, json is ownerInput

* use pointer for omitempty
  • Loading branch information
taimoor ahmad authored Oct 25, 2023
1 parent 0232a5b commit 8ec23ef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Refactor-20231020-134723.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Refactor
body: BREAKING CHANGE ownerAlias deprecated on service inputs
time: 2023-10-20T13:47:23.782519-04:00
36 changes: 18 additions & 18 deletions service.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,27 @@ type ServiceDocumentsConnection struct {
}

type ServiceCreateInput struct {
Name string `json:"name"`
Product string `json:"product,omitempty"`
Description string `json:"description,omitempty"`
Language string `json:"language,omitempty"`
Framework string `json:"framework,omitempty"`
Tier string `json:"tierAlias,omitempty"`
Owner string `json:"ownerAlias,omitempty"`
Lifecycle string `json:"lifecycleAlias,omitempty"`
Name string `json:"name"`
Product string `json:"product,omitempty"`
Description string `json:"description,omitempty"`
Language string `json:"language,omitempty"`
Framework string `json:"framework,omitempty"`
Tier string `json:"tierAlias,omitempty"`
Owner *IdentifierInput `json:"ownerInput,omitempty"`
Lifecycle string `json:"lifecycleAlias,omitempty"`
}

type ServiceUpdateInput struct {
Id ID `json:"id,omitempty"`
Alias string `json:"alias,omitempty"`
Name string `json:"name,omitempty"`
Product string `json:"product,omitempty"`
Description string `json:"description,omitempty"`
Language string `json:"language,omitempty"`
Framework string `json:"framework,omitempty"`
Tier string `json:"tierAlias,omitempty"`
Owner string `json:"ownerAlias,omitempty"`
Lifecycle string `json:"lifecycleAlias,omitempty"`
Id ID `json:"id,omitempty"`
Alias string `json:"alias,omitempty"`
Name string `json:"name,omitempty"`
Product string `json:"product,omitempty"`
Description string `json:"description,omitempty"`
Language string `json:"language,omitempty"`
Framework string `json:"framework,omitempty"`
Tier string `json:"tierAlias,omitempty"`
Owner *IdentifierInput `json:"ownerInput,omitempty"`
Lifecycle string `json:"lifecycleAlias,omitempty"`
}

type ServiceDeleteInput struct {
Expand Down

0 comments on commit 8ec23ef

Please sign in to comment.