Skip to content

Commit

Permalink
add file extension validation
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Bernal <[email protected]>
  • Loading branch information
jgbernalp committed Oct 23, 2023
1 parent 1fba9b3 commit c17e3d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/perses_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// +kubebuilder:validation:Enum=json,yaml
type FileExtension string

type File struct {
Expand Down

0 comments on commit c17e3d4

Please sign in to comment.