From 6d7a173d5507d7d58077c843ea9ca001bb07ecc4 Mon Sep 17 00:00:00 2001 From: Yury Date: Sun, 22 Aug 2021 17:13:29 +0300 Subject: [PATCH] fix: Fix data type labels for oneOf and anyOf --- src/PropertyDocumentMixin.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/PropertyDocumentMixin.js b/src/PropertyDocumentMixin.js index 71b6940..decb53a 100644 --- a/src/PropertyDocumentMixin.js +++ b/src/PropertyDocumentMixin.js @@ -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'; }