Remove legacy raw pipeline contracts
This commit is contained in:
@@ -24,7 +24,9 @@ type BuildRequest struct {
|
||||
// OptionValidator validates one module binding without constructing it.
|
||||
type OptionValidator func(map[string]any) error
|
||||
|
||||
func allowLegacyOptions(map[string]any) error { return nil }
|
||||
func rejectUnconfiguredOptions(options map[string]any) error {
|
||||
return RejectUnknownOptions(options)
|
||||
}
|
||||
|
||||
func validateRegisteredOptions(validator OptionValidator, options map[string]any) error {
|
||||
if validator == nil {
|
||||
|
||||
Reference in New Issue
Block a user