Skip to content

Commit

Permalink
Fix incorrectly required item for EditStep
Browse files Browse the repository at this point in the history
  • Loading branch information
l50 committed Sep 8, 2023
1 parent 3df3a5b commit 0de612c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/ttpforge-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ definitions:
required:
- old
- new
- regexp

Spec:
type: object
Expand Down
4 changes: 0 additions & 4 deletions magefiles/schemaValidator.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,6 @@ func validateEdits(yamlData map[string]interface{}) error {
if _, exists := editMap["new"]; !exists {
return fmt.Errorf("an edit item is missing the 'new' field")
}

if _, exists := editMap["regexp"]; !exists {
return fmt.Errorf("an edit item is missing the 'regexp' field")
}
}
}
}
Expand Down

0 comments on commit 0de612c

Please sign in to comment.