@camunda/zeebe-element-templates-json-schema 0.2.0 → 0.4.1

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.4.1",
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": "5579ae200a7b00b8f73dcaaa9a36d3f8f027af10"
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,41 @@
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
+ "required": [
553
+ "value"
554
+ ],
555
+ "errorMessage": {
556
+ "required": {
557
+ "value": "missing elementType value"
558
+ }
559
+ },
560
+ "properties": {
561
+ "value": {
562
+ "$id": "#/elementType/value",
563
+ "type": "string",
564
+ "pattern": "^[\\w\\d]+:[\\w\\d]+$",
565
+ "errorMessage": {
566
+ "pattern": "invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""
567
+ },
568
+ "allOf": [
569
+ {
570
+ "examples": [
571
+ "bpmn:ServiceTask",
572
+ "bpmn:UserTask",
573
+ "bpmn:StartEvent",
574
+ "bpmn:ExclusiveGateway",
575
+ "bpmn:ParallelGateway"
576
+ ]
577
+ }
578
+ ]
579
+ }
580
+ }
581
+ },
547
582
  "metadata": {
548
583
  "$id": "#/metadata",
549
584
  "type": "object",
@@ -598,6 +633,14 @@
598
633
  }
599
634
  }
600
635
  }
636
+ },
637
+ "documentationRef": {
638
+ "$id": "#/documentaionRef",
639
+ "type": "string",
640
+ "pattern": "^(https|http)://.*",
641
+ "errorMessage": {
642
+ "pattern": "Malformed documentation URL, must match \"^(https|http)://.*\""
643
+ }
601
644
  }
602
645
  },
603
646
  "errorMessage": {
@@ -614,6 +657,31 @@
614
657
  "properties": {
615
658
  "$ref": "#/definitions/properties",
616
659
  "$id": "#/properties"
660
+ },
661
+ "icon": {
662
+ "$id": "#/icon",
663
+ "type": "object",
664
+ "description": "Custom icon to be shown on the element",
665
+ "default": {},
666
+ "properties": {
667
+ "contents": {
668
+ "$id": "#/icon/contents",
669
+ "type": "string",
670
+ "description": "The URL of an icon.",
671
+ "pattern": "^(https?|data):.*",
672
+ "errorMessage": {
673
+ "pattern": "Malformed icon source, must be a valid HTTP(s) or data URL"
674
+ }
675
+ }
676
+ },
677
+ "required": [
678
+ "contents"
679
+ ],
680
+ "errorMessage": {
681
+ "required": {
682
+ "contents": "missing icon contents"
683
+ }
684
+ }
617
685
  }
618
686
  }
619
687
  }
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: