Skip to content

Commit

Permalink
fix: Fix data type labels for oneOf and anyOf
Browse files Browse the repository at this point in the history
  • Loading branch information
deiteris committed Aug 22, 2021
1 parent 227e582 commit 6d7a173
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/PropertyDocumentMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ const mxFunction = (base) => {
if (this._hasType(range, rs.ScalarShape)) {
return this._computeScalarDataType(range);
}
if (this._hasProperty(range, this.ns.w3.shacl.xone)) {
return 'One of';
}
if (this._hasProperty(range, this.ns.w3.shacl.or)) {
return 'Any of';
}
if (this._hasType(range, rs.UnionShape)) {
return 'Union';
}
Expand Down

0 comments on commit 6d7a173

Please sign in to comment.