@camunda/zeebe-element-templates-json-schema 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/resources/schema.json +103 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/zeebe-element-templates-json-schema",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "JSON Schema for (Zeebe) Element Templates",
5
5
  "files": [
6
6
  "resources"
@@ -25,5 +25,5 @@
25
25
  "camunda"
26
26
  ],
27
27
  "license": "MIT",
28
- "gitHead": "1d013fc892c24c622b6a1f471c7619a4517434c1"
28
+ "gitHead": "88f93d44fa0439df7fe66dca5ee4aee6ad90ae44"
29
29
  }
@@ -343,10 +343,10 @@
343
343
  "zeebe:output",
344
344
  "zeebe:property",
345
345
  "zeebe:taskHeader",
346
- "zeebe:taskDefinition:retries",
347
346
  "zeebe:taskDefinition:type",
348
347
  "bpmn:Message#property",
349
- "bpmn:Message#zeebe:subscription#property"
348
+ "bpmn:Message#zeebe:subscription#property",
349
+ "zeebe:taskDefinition"
350
350
  ]
351
351
  }
352
352
  },
@@ -582,6 +582,46 @@
582
582
  ]
583
583
  }
584
584
  },
585
+ {
586
+ "if": {
587
+ "properties": {
588
+ "type": {
589
+ "const": "zeebe:taskDefinition"
590
+ }
591
+ },
592
+ "required": [
593
+ "type"
594
+ ]
595
+ },
596
+ "then": {
597
+ "properties": {
598
+ "property": {
599
+ "enum": [
600
+ "type",
601
+ "retries"
602
+ ]
603
+ }
604
+ },
605
+ "required": [
606
+ "property"
607
+ ]
608
+ }
609
+ },
610
+ {
611
+ "if": {
612
+ "properties": {
613
+ "type": {
614
+ "const": "zeebe:taskDefinition:type"
615
+ }
616
+ },
617
+ "required": [
618
+ "type"
619
+ ]
620
+ },
621
+ "then": {
622
+ "deprecated": true
623
+ }
624
+ },
585
625
  {
586
626
  "examples": [
587
627
  {
@@ -601,14 +641,16 @@
601
641
  "name": "property"
602
642
  },
603
643
  {
604
- "type": "zeebe:taskDefinition:retries"
644
+ "type": "zeebe:taskHeader",
645
+ "key": "key"
605
646
  },
606
647
  {
607
- "type": "zeebe:taskDefinition:type"
648
+ "type": "zeebe:taskDefinition",
649
+ "property": "retries"
608
650
  },
609
651
  {
610
- "type": "zeebe:taskHeader",
611
- "key": "key"
652
+ "type": "zeebe:taskDefinition",
653
+ "property": "type"
612
654
  }
613
655
  ]
614
656
  }
@@ -621,13 +663,13 @@
621
663
  "enum": [
622
664
  "property",
623
665
  "zeebe:taskDefinition:type",
624
- "zeebe:taskDefinition:retries",
625
666
  "zeebe:input",
626
667
  "zeebe:output",
627
668
  "zeebe:property",
628
669
  "zeebe:taskHeader",
629
670
  "bpmn:Message#property",
630
- "bpmn:Message#zeebe:subscription#property"
671
+ "bpmn:Message#zeebe:subscription#property",
672
+ "zeebe:taskDefinition"
631
673
  ]
632
674
  },
633
675
  "name": {
@@ -644,6 +686,11 @@
644
686
  "$id": "#/properties/property/binding/key",
645
687
  "type": "string",
646
688
  "description": "The key value of a property binding (zeebe:taskHeader)."
689
+ },
690
+ "property": {
691
+ "$id": "#/properties/property/binding/property",
692
+ "type": "string",
693
+ "description": "The name of the property defined in the binding."
647
694
  }
648
695
  }
649
696
  },
@@ -875,21 +922,63 @@
875
922
  "type"
876
923
  ]
877
924
  }
878
- }
925
+ },
926
+ "required": [
927
+ "binding"
928
+ ]
879
929
  }
880
930
  }
881
- }
931
+ },
932
+ "required": [
933
+ "properties"
934
+ ]
882
935
  },
883
936
  "then": {
937
+ "required": [
938
+ "elementType"
939
+ ],
884
940
  "properties": {
885
941
  "elementType": {
942
+ "required": [
943
+ "value"
944
+ ],
886
945
  "properties": {
887
- "eventDefinition": {
888
- "const": "bpmn:MessageEventDefinition"
946
+ "value": {
947
+ "enum": [
948
+ "bpmn:ReceiveTask",
949
+ "bpmn:SendTask",
950
+ "bpmn:StartEvent",
951
+ "bpmn:IntermediateCatchEvent",
952
+ "bpmn:IntermediateThrowEvent",
953
+ "bpmn:BoundaryEvent",
954
+ "bpmn:EndEvent"
955
+ ]
889
956
  }
890
957
  },
891
- "required": [
892
- "eventDefinition"
958
+ "allOf": [
959
+ {
960
+ "if": {
961
+ "properties": {
962
+ "value": {
963
+ "enum": [
964
+ "bpmn:StartEvent",
965
+ "bpmn:IntermediateCatchEvent",
966
+ "bpmn:IntermediateThrowEvent",
967
+ "bpmn:BoundaryEvent",
968
+ "bpmn:EndEvent"
969
+ ]
970
+ }
971
+ }
972
+ },
973
+ "then": {
974
+ "eventDefinition": {
975
+ "const": "bpmn:MessageEventDefinition"
976
+ },
977
+ "required": [
978
+ "eventDefinition"
979
+ ]
980
+ }
981
+ }
893
982
  ]
894
983
  }
895
984
  }
@@ -936,13 +1025,6 @@
936
1025
  },
937
1026
  {
938
1027
  "if": {
939
- "properties": {
940
- "eventDefinition": {
941
- "enum": [
942
- "bpmn:MessageEventDefinition"
943
- ]
944
- }
945
- },
946
1028
  "required": [
947
1029
  "eventDefinition"
948
1030
  ]