bpmnlint 11.7.2 → 11.7.3

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # bpmnlint
2
2
 
3
- [![CI](https://github.com/bpmn-io/bpmnlint/workflows/CI/badge.svg)](https://github.com/bpmn-io/bpmnlint/actions?query=workflow%3ACI)
3
+ [![CI](https://github.com/bpmn-io/bpmnlint/actions/workflows/CI.yml/badge.svg)](https://github.com/bpmn-io/bpmnlint/actions/workflows/CI.yml)
4
4
 
5
5
  Validate your BPMN diagrams based on configurable lint rules.
6
6
 
package/lib/traverse.js CHANGED
@@ -5,6 +5,15 @@
5
5
  * @typedef { (element: ModdleElement) => void } LeaveFn
6
6
  */
7
7
 
8
+ /**
9
+ * Check if a type is simple, primitive.
10
+ *
11
+ * @param {string} type
12
+ * @return {boolean}
13
+ */
14
+ function isSimpleType(type) {
15
+ return [ 'String', 'Boolean', 'Integer', 'Real' ].includes(type);
16
+ }
8
17
 
9
18
  /**
10
19
  * Traverse a moddle tree, depth first from top to bottom
@@ -25,7 +34,7 @@ module.exports = function traverse(element, options) {
25
34
  if (enterSubTree !== false && !descriptor.isGeneric) {
26
35
 
27
36
  const containedProperties = descriptor.properties.filter(p => {
28
- return !p.isAttr && !p.isReference && p.type !== 'String';
37
+ return !p.isAttr && !p.isReference && !isSimpleType(p.type);
29
38
  });
30
39
 
31
40
  containedProperties.forEach(p => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bpmnlint",
3
3
  "description": "Validate your BPMN diagrams based on configurable lint rules",
4
- "version": "11.7.2",
4
+ "version": "11.7.3",
5
5
  "main": "lib/index.js",
6
6
  "keywords": [
7
7
  "bpmnlint",