Skip to content

Commit

Permalink
chore: check valid yaml and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Apr 29, 2021
1 parent 8554533 commit ab58efd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion azure-eventhubs-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ spec:
eventhubName:
title: Eventhubs Name
description: The eventhub name
type: boolean
type: string
sharedAccessName:
title: Share Access Name
Expand Down
1 change: 0 additions & 1 deletion azure-eventhubs-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ spec:
eventhubName:
title: Eventhubs Name
description: The eventhub name
type: boolean
type: string
sharedAccessName:
title: Share Access Name
Expand Down
5 changes: 2 additions & 3 deletions cron-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ spec:
parameters:
schedule: "{{schedule}}"
steps:
- set-body:
constant: "{{message}}"
steps:
- set-body:
constant: "{{message}}"
- to: "kamelet:sink"
2 changes: 1 addition & 1 deletion script/validator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ab58efd

Please sign in to comment.