@api-components/api-type-document 4.2.19 → 4.2.21

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.19",
4
+ "version": "4.2.21",
5
5
  "license": "Apache-2.0",
6
6
  "main": "index.js",
7
7
  "module": "index.js",
@@ -414,6 +414,15 @@ export class ApiTypeDocument extends PropertyDocumentMixin(LitElement) {
414
414
  }
415
415
  } else if (this._hasType(type, this.ns.w3.shacl.NodeShape)) {
416
416
  isObject = true;
417
+ const andKey = this._getAmfKey(this.ns.w3.shacl.and);
418
+ if (andKey in type) {
419
+ const propertyKey = this._getAmfKey(this.ns.w3.shacl.property);
420
+ if (!(propertyKey in type)) {
421
+ isObject = false;
422
+ }
423
+ isAnd = true;
424
+ this.andTypes = this._computeAndTypes(type[andKey]);
425
+ }
417
426
  } else if (this._hasType(type, this.ns.aml.vocabularies.shapes.AnyShape)) {
418
427
  const andKey = this._getAmfKey(this.ns.w3.shacl.and);
419
428
  if (andKey in type) {