Skip to content

Commit 5b13dd5

Browse files
committed
fix(ApiTypeDocument): missing info for allOf type
1 parent faa8368 commit 5b13dd5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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)