12 lines
329 B
Go
12 lines
329 B
Go
package validate
|
|
|
|
import (
|
|
"context"
|
|
"gitea.maximumdirect.net/eric/scriptorium/internal/domain"
|
|
)
|
|
|
|
// Validator validates the generated artifact based on the output contract.
|
|
type Validator interface {
|
|
Validate(ctx context.Context, artifact *domain.Artifact, contract domain.OutputContract) (domain.ValidationResult, error)
|
|
}
|