@sphereon/ssi-sdk.data-store
Version:
13 lines • 427 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConstraint = void 0;
const getConstraint = (validation) => {
if (validation.children && validation.children.length > 0) {
return (0, exports.getConstraint)(validation.children[0]);
}
else {
return validation.constraints;
}
};
exports.getConstraint = getConstraint;
//# sourceMappingURL=ValidatorUtils.js.map