From f4eb6276e1e5922b3bc1d68f5f1bc7ecd4bc4fa9 Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 26 Jul 2019 12:06:30 +0100 Subject: [PATCH] fix(#1156): Improve error message when allOf or anyOf have fewer than two children. --- .../profileschema/0.1/datahelix.schema.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/profile/src/main/resources/profileschema/0.1/datahelix.schema.json b/profile/src/main/resources/profileschema/0.1/datahelix.schema.json index 44f8fc4ae..8afb25060 100644 --- a/profile/src/main/resources/profileschema/0.1/datahelix.schema.json +++ b/profile/src/main/resources/profileschema/0.1/datahelix.schema.json @@ -117,22 +117,22 @@ "constraint": { "oneOf": [ { - "$ref": "#/definitions/dataConstraint" + "$ref": "#/definitions/anyOfConstraint" }, { - "$ref": "#/definitions/nullConstraint" + "$ref": "#/definitions/allOfConstraint" }, { - "$ref": "#/definitions/inSetConstraint" + "$ref": "#/definitions/dataConstraint" }, { - "$ref": "#/definitions/notConstraint" + "$ref": "#/definitions/nullConstraint" }, { - "$ref": "#/definitions/anyOfConstraint" + "$ref": "#/definitions/inSetConstraint" }, { - "$ref": "#/definitions/allOfConstraint" + "$ref": "#/definitions/notConstraint" }, { "$ref": "#/definitions/ifThenConstraint"