@api-components/api-type-document 4.2.22 → 4.2.24
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@api-components/api-type-document",
|
|
3
3
|
"description": "A documentation table for type (resource) properties. Works with AMF data model",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.24",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"module": "index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@open-wc/testing": "^2.5.15",
|
|
46
46
|
"@web/dev-server": "^0.1.24",
|
|
47
47
|
"@web/test-runner": "^0.13.18",
|
|
48
|
-
"@web/test-runner-playwright": "
|
|
48
|
+
"@web/test-runner-playwright": "0.8.10",
|
|
49
49
|
"eslint": "^7.32.0",
|
|
50
50
|
"eslint-config-prettier": "^8.1.0",
|
|
51
51
|
"husky": "^7.0.2",
|
package/src/ApiTypeDocument.js
CHANGED
|
@@ -388,6 +388,11 @@ export class ApiTypeDocument extends PropertyDocumentMixin(LitElement) {
|
|
|
388
388
|
isOneOf = true;
|
|
389
389
|
key = this._getAmfKey(this.ns.w3.shacl.xone);
|
|
390
390
|
this.oneOfTypes = this._computeTypes(type, key);
|
|
391
|
+
} else if (this._hasProperty(type, this.ns.w3.shacl.or)) {
|
|
392
|
+
isScalar = false;
|
|
393
|
+
isAnyOf = true;
|
|
394
|
+
key = this._getAmfKey(this.ns.w3.shacl.or);
|
|
395
|
+
this.anyOfTypes = this._computeTypes(type, key);
|
|
391
396
|
}
|
|
392
397
|
} else if (
|
|
393
398
|
this._hasType(type, this.ns.aml.vocabularies.shapes.UnionShape)
|
|
@@ -411,7 +411,7 @@ export class PropertyShapeDocument extends PropertyDocumentMixin(LitElement) {
|
|
|
411
411
|
));
|
|
412
412
|
}
|
|
413
413
|
const data = this._getValue(shape, this.ns.w3.shacl.minCount);
|
|
414
|
-
return data !== undefined && data !== 0;
|
|
414
|
+
return data !== undefined && Number(data) !== 0;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
/**
|