Skip to content

Commit

Permalink
Fix small typo on the kubebuilder FunctionType's validation (#173)
Browse files Browse the repository at this point in the history
Signed-off-by: Spolti <filippespolti@gmail.com>
  • Loading branch information
spolti authored May 4, 2023
1 parent 6278ce5 commit 1e70f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ type Function struct {
// <path_to_custom_script>#<custom_service_method>.
// +kubebuilder:validation:Required
Operation string `json:"operation" validate:"required,oneof=rest rpc expression"`
// Defines the function type. Is either `custom`, `rest`, `rpc`, `expression`, `graphql`, `asyncapi`, `asyncapi` or `asyncapi`.
// Defines the function type. Is either `custom`, `rest`, `rpc`, `expression`, `graphql`, `odata` or `asyncapi`.
// Default is `rest`.
// +kubebuilder:validation:Enum=rest;rpc;expression;graphql;asyncapi;asyncapi;asyncapi;custom
// +kubebuilder:validation:Enum=rest;rpc;expression;graphql;odata;asyncapi;custom
// +kubebuilder:default=rest
Type FunctionType `json:"type,omitempty"`
// References an auth definition name to be used to access to resource defined in the operation parameter.
Expand Down

0 comments on commit 1e70f47

Please sign in to comment.