From bfbe6a894ec6c4df71abd35ce8fc371d7cbba2a9 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 10 Dec 2024 08:17:06 +0100 Subject: [PATCH] JSON Schema: Support quality on model level --- datacontract.schema.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/datacontract.schema.json b/datacontract.schema.json index f277503..568a004 100644 --- a/datacontract.schema.json +++ b/datacontract.schema.json @@ -680,6 +680,12 @@ }, "description": "The compound primary key of the model." }, + "quality": { + "type": "array", + "items": { + "$ref": "#/$defs/Quality" + } + }, "examples": { "type": "array" }, @@ -1704,6 +1710,20 @@ } } }, + { + "if": { + "properties": { + "type": { + "const": "text" + } + } + }, + "then": { + "required": [ + "description" + ] + } + }, { "if": { "properties": {