Resolve declared file targets in Run
This commit is contained in:
@@ -51,6 +51,9 @@ func ValidateRunJobAssignment(assignment RunJobAssignment) error {
|
||||
if assignment.ExecutionInput.MaxReadBytes < 0 || assignment.ExecutionInput.MaxReadBytes > maxRunExecutionContentBytes {
|
||||
return ValidationError("execution input maxReadBytes is out of bounds")
|
||||
}
|
||||
if assignment.ExecutionInput.FileTargetKey != "" && !ValidLogicalFileKey(assignment.ExecutionInput.FileTargetKey) {
|
||||
return ValidationError("execution input fileTargetKey is not allowed")
|
||||
}
|
||||
if assignment.ExecutionInput.WorkspaceScope != "" && !ValidLogicalFileKey(assignment.ExecutionInput.WorkspaceScope) {
|
||||
return ValidationError("execution input workspaceScope is not allowed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user