@camunda/element-templates-json-schema 0.8.0 → 0.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/element-templates-json-schema",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "JSON Schema for (Camunda) Element Templates",
5
5
  "files": [
6
6
  "resources"
@@ -23,5 +23,5 @@
23
23
  "camunda"
24
24
  ],
25
25
  "license": "MIT",
26
- "gitHead": "f4b102f0cdb536cba89e1dbfbe8bd3b58b75a224"
26
+ "gitHead": "00ac9b421ae95098729fbf72f99988690f0800ea"
27
27
  }
@@ -677,7 +677,7 @@
677
677
  "items": {
678
678
  "$id": "#/appliesTo/items",
679
679
  "type": "string",
680
- "pattern": "^(.*?:)",
680
+ "pattern": "^[\\w\\d]+:[\\w\\d]+$",
681
681
  "errorMessage": {
682
682
  "pattern": "invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""
683
683
  },
@@ -695,6 +695,33 @@
695
695
  ]
696
696
  }
697
697
  },
698
+ "elementType": {
699
+ "$id": "#/elementType",
700
+ "type": "object",
701
+ "description": "The BPMN type the element will be transformed into.",
702
+ "default": {},
703
+ "properties": {
704
+ "value": {
705
+ "$id": "#/elementType/value",
706
+ "type": "string",
707
+ "pattern": "^[\\w\\d]+:[\\w\\d]+$",
708
+ "errorMessage": {
709
+ "pattern": "invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""
710
+ },
711
+ "allOf": [
712
+ {
713
+ "examples": [
714
+ "bpmn:ServiceTask",
715
+ "bpmn:UserTask",
716
+ "bpmn:StartEvent",
717
+ "bpmn:ExclusiveGateway",
718
+ "bpmn:ParallelGateway"
719
+ ]
720
+ }
721
+ ]
722
+ }
723
+ }
724
+ },
698
725
  "metadata": {
699
726
  "$id": "#/metadata",
700
727
  "type": "object",
@@ -749,6 +776,14 @@
749
776
  }
750
777
  }
751
778
  }
779
+ },
780
+ "documentationRef": {
781
+ "$id": "#/documentaionRef",
782
+ "type": "string",
783
+ "pattern": "^(https|http)://.*",
784
+ "errorMessage": {
785
+ "pattern": "Malformed documentation URL, must match \"^(https|http)://.*\""
786
+ }
752
787
  }
753
788
  },
754
789
  "errorMessage": {