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 authored and marstamm committed Nov 1, 2023
1 parent 3dbaa30 commit a822938
Show file tree
Hide file tree
Showing 2 changed files with 27 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,34 @@
]
},
"then": {
"properties": {
"property": {
"enum": [
"type",
"retries"
]
}
},
"required": [
"property"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "zeebe:taskDefinition:type"
}
},
"required": [
"type"
]
},
"then": {
"deprecated": true
}
},
{
"$ref": "examples.json#/binding"
}
Expand Down

0 comments on commit a822938

Please sign in to comment.