Skip to content

Commit

Permalink
fix owner struct tag in ServiceCreateInput (#486)
Browse files Browse the repository at this point in the history
* fix owner struct tag in ServiceCreateInput

* fix other owner struct tags

* update tier and lifecycle struct tags, add changie log

* only update yaml struct tags
  • Loading branch information
davidbloss authored Nov 5, 2024
1 parent 0c33a7f commit d1122af
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Refactor-20241105-100320.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Refactor
body: BREAKING CHANGE revert ServiceCreateInput and ServiceUpdateInput YAML struct tags back to before 2024 convention
time: 2024-11-05T10:03:20.275463-06:00
12 changes: 6 additions & 6 deletions input.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions new_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ type ServiceUpdateInputV2 struct {
Description *Nullable[string] `json:"description,omitempty" yaml:"description,omitempty" example:"example_description"` // A brief description of the service. (Optional.)
Language *Nullable[string] `json:"language,omitempty" yaml:"language,omitempty" example:"example_language"` // The primary programming language that the service is written in. (Optional.)
Framework *Nullable[string] `json:"framework,omitempty" yaml:"framework,omitempty" example:"example_framework"` // The primary software development framework that the service uses. (Optional.)
TierAlias *Nullable[string] `json:"tierAlias,omitempty" yaml:"tierAlias,omitempty" example:"example_alias"` // The software tier that the service belongs to. (Optional.)
OwnerInput *IdentifierInput `json:"ownerInput,omitempty" yaml:"ownerInput,omitempty"` // The owner for the service. (Optional.)
LifecycleAlias *Nullable[string] `json:"lifecycleAlias,omitempty" yaml:"lifecycleAlias,omitempty" example:"example_alias"` // The lifecycle stage of the service. (Optional.)
TierAlias *Nullable[string] `json:"tierAlias,omitempty" yaml:"tier,omitempty" example:"example_alias"` // The software tier that the service belongs to. (Optional.)
OwnerInput *IdentifierInput `json:"ownerInput,omitempty" yaml:"owner,omitempty"` // The owner for the service. (Optional.)
LifecycleAlias *Nullable[string] `json:"lifecycleAlias,omitempty" yaml:"lifecycle,omitempty" example:"example_alias"` // The lifecycle stage of the service. (Optional.)
SkipAliasesValidation *bool `json:"skipAliasesValidation,omitempty" yaml:"skipAliasesValidation,omitempty" example:"false"` // Allows updating a service with invalid aliases. (Optional.)
}

Expand Down

0 comments on commit d1122af

Please sign in to comment.