Skip to content

Commit

Permalink
feat: mark zeebe:taskDefinition:type as deprecated
Browse files Browse the repository at this point in the history
The binding is replaced with `zeebe:taskDefinition` which suggests
both `retries` and `type` property names.
  • Loading branch information
barmac committed Oct 30, 2023
1 parent 0fc161a commit 99d84d5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@
"type": "zeebe:property",
"name": "property"
},
{
"type": "zeebe:taskDefinition:type"
},
{
"type": "zeebe:taskHeader",
"key": "key"
},
{
"type": "zeebe:taskDefinition",
"property": "retries"
},
{
"type": "zeebe:taskDefinition",
"property": "type"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,41 @@
]
},
"then": {
"properties": {
"property": {
"anyOf": [
{
"enum": [
"type",
"retries"
]
},
{
"type": "string"
}
]
}
},
"required": [
"property"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "zeebe:taskDefinition:type"
}
},
"required": [
"type"
]
},
"then": {
"deprecated": true
}
},
{
"$ref": "examples.json#/binding"
}
Expand Down

0 comments on commit 99d84d5

Please sign in to comment.