Skip to content

Commit 5506083

Browse files
committed
fix: showing required item when it shouldnt
1 parent f365ecc commit 5506083

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PropertyShapeDocument.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,10 @@ export class PropertyShapeDocument extends PropertyDocumentMixin(LitElement) {
411411
}
412412
shape = this._resolve(shape);
413413
if (this._hasType(shape, this.ns.aml.vocabularies.apiContract.Parameter)) {
414-
const required = Boolean(this._getValue(
414+
const required = this._getValue(
415415
shape,
416416
this.ns.aml.vocabularies.apiContract.required
417-
))
417+
)
418418
return this._toBoolean(required);
419419
}
420420
const data = this._getValue(shape, this.ns.w3.shacl.minCount);

0 commit comments

Comments
 (0)