Skip to content

Commit

Permalink
fix(schema): fix task sources and outputs schema (#3988)
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 authored Jan 8, 2025
1 parent de32f03 commit 0c9f23a
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 24 deletions.
52 changes: 40 additions & 12 deletions schema/mise-task.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,32 @@
"type": "boolean"
},
"outputs": {
"description": "files created by this task",
"items": {
"description": "glob pattern or path to files created by this task",
"type": "string"
},
"type": "array"
"oneOf": [
{
"description": "files created by this task",
"items": {
"description": "glob pattern or path to files created by this task",
"type": "string"
},
"type": "array"
},
{
"description": "glob pattern or path to files created by this task",
"type": "string"
},
{
"additionalProperties": false,
"properties": {
"auto": {
"description": "automatically touch an internal tracked file instead of specifying outputs",
"enum": [true],
"type": "boolean"
}
},
"required": ["auto"],
"type": "object"
}
]
},
"quiet": {
"description": "do not display mise information for this task",
Expand Down Expand Up @@ -213,12 +233,20 @@
"type": "string"
},
"sources": {
"description": "files that this task depends on",
"items": {
"description": "glob pattern or path to files that this task depends on",
"type": "string"
},
"type": "array"
"oneOf": [
{
"description": "files that this task depends on",
"items": {
"description": "glob pattern or path to files that this task depends on",
"type": "string"
},
"type": "array"
},
{
"description": "glob pattern or path to files that this task depends on",
"type": "string"
}
]
},
"shell": {
"description": "specify a shell command to run the script with",
Expand Down
52 changes: 40 additions & 12 deletions schema/mise.json
Original file line number Diff line number Diff line change
Expand Up @@ -1110,12 +1110,32 @@
"type": "boolean"
},
"outputs": {
"description": "files created by this task",
"items": {
"description": "glob pattern or path to files created by this task",
"type": "string"
},
"type": "array"
"oneOf": [
{
"description": "files created by this task",
"items": {
"description": "glob pattern or path to files created by this task",
"type": "string"
},
"type": "array"
},
{
"description": "glob pattern or path to files created by this task",
"type": "string"
},
{
"additionalProperties": false,
"properties": {
"auto": {
"description": "automatically touch an internal tracked file instead of specifying outputs",
"enum": [true],
"type": "boolean"
}
},
"required": ["auto"],
"type": "object"
}
]
},
"quiet": {
"description": "do not display mise information for this task",
Expand Down Expand Up @@ -1162,12 +1182,20 @@
"type": "string"
},
"sources": {
"description": "files that this task depends on",
"items": {
"description": "glob pattern or path to files that this task depends on",
"type": "string"
},
"type": "array"
"oneOf": [
{
"description": "files that this task depends on",
"items": {
"description": "glob pattern or path to files that this task depends on",
"type": "string"
},
"type": "array"
},
{
"description": "glob pattern or path to files that this task depends on",
"type": "string"
}
]
},
"shell": {
"description": "specify a shell command to run the script with",
Expand Down

0 comments on commit 0c9f23a

Please sign in to comment.