@camunda/zeebe-element-templates-json-schema 0.2.0 → 0.3.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/zeebe-element-templates-json-schema",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "JSON Schema for (Zeebe) 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
  }
@@ -526,7 +526,7 @@
526
526
  "items": {
527
527
  "$id": "#/appliesTo/items",
528
528
  "type": "string",
529
- "pattern": "^(.*?:)",
529
+ "pattern": "^[\\w\\d]+:[\\w\\d]+$",
530
530
  "errorMessage": {
531
531
  "pattern": "invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""
532
532
  },
@@ -544,6 +544,33 @@
544
544
  ]
545
545
  }
546
546
  },
547
+ "elementType": {
548
+ "$id": "#/elementType",
549
+ "type": "object",
550
+ "description": "The BPMN type the element will be transformed into.",
551
+ "default": {},
552
+ "properties": {
553
+ "value": {
554
+ "$id": "#/elementType/value",
555
+ "type": "string",
556
+ "pattern": "^[\\w\\d]+:[\\w\\d]+$",
557
+ "errorMessage": {
558
+ "pattern": "invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""
559
+ },
560
+ "allOf": [
561
+ {
562
+ "examples": [
563
+ "bpmn:ServiceTask",
564
+ "bpmn:UserTask",
565
+ "bpmn:StartEvent",
566
+ "bpmn:ExclusiveGateway",
567
+ "bpmn:ParallelGateway"
568
+ ]
569
+ }
570
+ ]
571
+ }
572
+ }
573
+ },
547
574
  "metadata": {
548
575
  "$id": "#/metadata",
549
576
  "type": "object",
@@ -598,6 +625,14 @@
598
625
  }
599
626
  }
600
627
  }
628
+ },
629
+ "documentationRef": {
630
+ "$id": "#/documentaionRef",
631
+ "type": "string",
632
+ "pattern": "^(https|http)://.*",
633
+ "errorMessage": {
634
+ "pattern": "Malformed documentation URL, must match \"^(https|http)://.*\""
635
+ }
601
636
  }
602
637
  },
603
638
  "errorMessage": {
package/CHANGELOG.md DELETED
@@ -1,16 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to [@camunda/zeebe-element-templates-json-schema](https://github.com/camunda/element-templates-json-schema/packages/zeebe-element-templates-json-schema) are documented here. We use [semantic versioning](http://semver.org/) for releases.
4
-
5
- ## Unreleased
6
-
7
- ___Note:__ Yet to be released changes appear here._
8
-
9
- ## 0.2.0
10
-
11
- * `FEAT`: add `feel` property ([#46](https://github.com/camunda/element-templates-json-schema/pull/46))
12
- * `FEAT`: provide better editor annotations ([#45](https://github.com/camunda/element-templates-json-schema/pull/45))
13
-
14
- ## 0.1.0
15
-
16
- * `FEAT`: initial version :tada: