diff --git a/package.json b/package.json index 2ec2cc8..86fbed5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@foerderfunke/matching-engine", - "version": "0.3.2", + "version": "0.3.3", "description": "Checks eligibilities by validating a user profile against requirement profiles", "author": "@foerderfunke", "license": "MIT", diff --git a/src/index.js b/src/index.js index 87808d3..b6b2040 100644 --- a/src/index.js +++ b/src/index.js @@ -84,6 +84,7 @@ export async function validateOne(userProfile, requirementProfile, datafieldsStr } // ignore HasValueConstraintComponent if they have an equivalent MinCountConstraintComponent? + // the problem of them both occurring can be avoided by using e.g. "sh:in (true)" instead of "sh:hasValue true", not sure that's the best solution though let violations = collectViolations(firstReport, true) if (violations.length > 0) { return {