Skip to content

Commit

Permalink
feat: add support for boolean types
Browse files Browse the repository at this point in the history
  • Loading branch information
kirederik committed Dec 20, 2024
1 parent 9f09855 commit d852bf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/update_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func updateCRDBytes(crd *apiextensionsv1.CustomResourceDefinition) ([]byte, erro
propNames := strings.Split(parsedProps[0], ".")
propType := parsedProps[1]

if !slices.Contains([]string{"string", "number", "integer", "object"}, propType) {
if !slices.Contains([]string{"string", "number", "integer", "object", "boolean"}, propType) {
return nil, fmt.Errorf("unsupported property type: %s", propType)
}

Expand Down
2 changes: 1 addition & 1 deletion test/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var _ = Describe("update", func() {
When("called with --help", func() {
It("prints the help", func() {
session := r.run("update", "api", "--help")
Expect(session.Out).To(gbytes.Say("Command to update promise API"))
Expect(session.Out).To(gbytes.Say("Command to update the Promise API"))
})
})

Expand Down

0 comments on commit d852bf0

Please sign in to comment.