Skip to content

Commit

Permalink
Merge branch 'main' into feat/image-and-job-status
Browse files Browse the repository at this point in the history
  • Loading branch information
williams-jack committed Jul 14, 2024
2 parents 28192f9 + dc687b7 commit 43a4fe7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ const conditionalGradingScriptCommand = {
on_true: {
anyOf: [
{
$ref: "https://orca-schemas.com/grading-job-config/grading-script-command",
type: "array",
items: {
$ref: "https://orca-schemas.com/grading-job-config/grading-script-command",
}
},
{ type: "string" },
{ type: "number" },
Expand All @@ -65,7 +68,10 @@ const conditionalGradingScriptCommand = {
on_false: {
anyOf: [
{
$ref: "https://orca-schemas.com/grading-job-config/grading-script-command",
type: "array",
items: {
$ref: "https://orca-schemas.com/grading-job-config/grading-script-command",
}
},
{ type: "string" },
{ type: "number" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,30 @@
"oneOf": [
{ "type": "string" },
{ "type": "number" },
{ "$ref": "bash_grading_script_command_schema.json" },
{ "$ref": "conditional_grading_script_comamnd_schema.json" }
{
"type": "array",
"items": {
"oneOf": [
{ "$ref": "bash_grading_script_command_schema.json" },
{ "$ref": "conditional_grading_script_comamnd_schema.json" }
]
}
}
]
},
"on_fail": {
"oneOf": [
{ "type": "string" },
{ "type": "number" },
{ "$ref": "bash_grading_script_command_schema.json" },
{ "$ref": "conditional_grading_script_comamnd_schema.json" }
{
"type": "array",
"items": {
"oneOf": [
{ "$ref": "bash_grading_script_command_schema.json" },
{ "$ref": "conditional_grading_script_comamnd_schema.json" }
]
}
}
]
},
"timeout": { "type": "number" },
Expand Down

0 comments on commit 43a4fe7

Please sign in to comment.