Separate output contract inputs from resolved values
This commit is contained in:
@@ -74,7 +74,7 @@ type RunRequest struct {
|
||||
Inputs map[string]ArtifactRef
|
||||
Vars map[string]string
|
||||
Execution *ExecutionTargetOverride
|
||||
Validation *OutputContract
|
||||
Validation *OutputContractInput
|
||||
AppendedMessages []RenderedMessage
|
||||
TransientRetries *int
|
||||
Observer ExecutionObserver `json:"-"`
|
||||
@@ -261,6 +261,15 @@ type OutputContract struct {
|
||||
RepairAttempts int `yaml:"repair_attempts"`
|
||||
}
|
||||
|
||||
// OutputContractInput is a request replacement before repair defaults resolve.
|
||||
type OutputContractInput struct {
|
||||
Format OutputFormat
|
||||
ValidationMode ValidationMode
|
||||
Schema any
|
||||
SchemaPath string
|
||||
RepairAttempts *int
|
||||
}
|
||||
|
||||
// ResourceBinding identifies a resource in its originating filesystem.
|
||||
type ResourceBinding struct {
|
||||
FS fs.FS
|
||||
|
||||
Reference in New Issue
Block a user