Skip to content

Commit 66ebc07

Browse files
authored
Merge pull request #66 from advanced-rest-client/fix/W-12065773/missing-type-documentation
[W-12065773] Missing type documentation
2 parents faa8368 + fb253bc commit 66ebc07

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@api-components/api-type-document",
33
"description": "A documentation table for type (resource) properties. Works with AMF data model",
4-
"version": "4.2.19",
4+
"version": "4.2.20",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",

src/ApiTypeDocument.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,12 @@ export class ApiTypeDocument extends PropertyDocumentMixin(LitElement) {
414414
}
415415
} else if (this._hasType(type, this.ns.w3.shacl.NodeShape)) {
416416
isObject = true;
417+
const andKey = this._getAmfKey(this.ns.w3.shacl.and);
418+
if (andKey in type) {
419+
isObject = false;
420+
isAnd = true;
421+
this.andTypes = this._computeAndTypes(type[andKey]);
422+
}
417423
} else if (this._hasType(type, this.ns.aml.vocabularies.shapes.AnyShape)) {
418424
const andKey = this._getAmfKey(this.ns.w3.shacl.and);
419425
if (andKey in type) {

0 commit comments

Comments
 (0)