Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions schema/mise-task.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,21 @@
},
{
"description": "task with args to run before this task",
"type": "array",
"items": {
"description": "task name and args",
"type": "string"
},
"type": "array"
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
]
},
Expand All @@ -114,11 +124,21 @@
},
{
"description": "task with args to run after this task",
"type": "array",
"items": {
"description": "task name and args",
"type": "string"
},
"type": "array"
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
]
},
Expand Down
32 changes: 26 additions & 6 deletions schema/mise.json
Original file line number Diff line number Diff line change
Expand Up @@ -1148,11 +1148,21 @@
},
{
"description": "task with args to run before this task",
"type": "array",
"items": {
"description": "task name and args",
"type": "string"
},
"type": "array"
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
]
},
Expand All @@ -1164,11 +1174,21 @@
},
{
"description": "task with args to run after this task",
"type": "array",
"items": {
"description": "task name and args",
"type": "string"
},
"type": "array"
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
]
},
Expand Down
6 changes: 3 additions & 3 deletions xtasks/lint/schema
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#MISE description="Lint schemas"
set -euo pipefail

ajv compile -s schema/mise.json --spec=draft2019 --strict=true
ajv compile -s schema/mise-task.json --spec=draft2019 --strict=true
ajv compile -s schema/mise.plugin.json --spec=draft2020 --strict=true
ajv compile -s schema/mise.json --spec=draft2019 --strict-schema=true
ajv compile -s schema/mise-task.json --spec=draft2019 --strict-schema=true
ajv compile -s schema/mise.plugin.json --spec=draft2020 --strict-schema=true
Loading