Skip to content

Commit 6d7a173

Browse files
committed
fix: Fix data type labels for oneOf and anyOf
1 parent 227e582 commit 6d7a173

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/PropertyDocumentMixin.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ const mxFunction = (base) => {
121121
if (this._hasType(range, rs.ScalarShape)) {
122122
return this._computeScalarDataType(range);
123123
}
124+
if (this._hasProperty(range, this.ns.w3.shacl.xone)) {
125+
return 'One of';
126+
}
127+
if (this._hasProperty(range, this.ns.w3.shacl.or)) {
128+
return 'Any of';
129+
}
124130
if (this._hasType(range, rs.UnionShape)) {
125131
return 'Union';
126132
}

0 commit comments

Comments
 (0)