From 9ed8bcb66f262b94f0b202dfc8d42e388c19c5a8 Mon Sep 17 00:00:00 2001 From: nicolaferraro Date: Thu, 29 Apr 2021 09:56:31 +0200 Subject: [PATCH] chore: check valid yaml and fix --- azure-eventhubs-sink.kamelet.yaml | 1 - azure-eventhubs-source.kamelet.yaml | 1 - cron-source.kamelet.yaml | 5 ++--- script/validator/validator.go | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/azure-eventhubs-sink.kamelet.yaml b/azure-eventhubs-sink.kamelet.yaml index 38f607305..462e00889 100644 --- a/azure-eventhubs-sink.kamelet.yaml +++ b/azure-eventhubs-sink.kamelet.yaml @@ -32,7 +32,6 @@ spec: eventhubName: title: Eventhubs Name description: The eventhub name - type: boolean type: string sharedAccessName: title: Share Access Name diff --git a/azure-eventhubs-source.kamelet.yaml b/azure-eventhubs-source.kamelet.yaml index 129dbf4a1..1ae0f51ac 100644 --- a/azure-eventhubs-source.kamelet.yaml +++ b/azure-eventhubs-source.kamelet.yaml @@ -29,7 +29,6 @@ spec: eventhubName: title: Eventhubs Name description: The eventhub name - type: boolean type: string sharedAccessName: title: Share Access Name diff --git a/cron-source.kamelet.yaml b/cron-source.kamelet.yaml index 62a0e2686..d0c83eb7b 100644 --- a/cron-source.kamelet.yaml +++ b/cron-source.kamelet.yaml @@ -38,7 +38,6 @@ spec: parameters: schedule: "{{schedule}}" steps: - - set-body: - constant: "{{message}}" - steps: + - set-body: + constant: "{{message}}" - to: "kamelet:sink" diff --git a/script/validator/validator.go b/script/validator/validator.go index 1949c83b4..882007ae9 100644 --- a/script/validator/validator.go +++ b/script/validator/validator.go @@ -68,7 +68,7 @@ func verifyInvalidContent(kamelets []KameletInfo) (errors []error) { var yamlFile map[string]interface{} err = yamlv3.Unmarshal(file, &yamlFile) if err != nil { - //errors = append(errors, perrors.Wrapf(err, "kamelet %q is not a valid YAML file", kamelet.Name)) + errors = append(errors, perrors.Wrapf(err, "kamelet %q is not a valid YAML file", kamelet.Name)) continue } jsonFile, err := yaml.ToJSON(file)