From 7db76c3ba1bfd00af0d6d15dd14889d892cb1bbd Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 24 Sep 2024 16:29:04 +0100 Subject: [PATCH] Removed use of $def, fixing broken tests --- schemas/referenceSystem.json | 20 +++----------------- schemas/targetConcept.json | 11 +++++++++++ 2 files changed, 14 insertions(+), 17 deletions(-) create mode 100644 schemas/targetConcept.json diff --git a/schemas/referenceSystem.json b/schemas/referenceSystem.json index c874112..63a2ec3 100644 --- a/schemas/referenceSystem.json +++ b/schemas/referenceSystem.json @@ -39,32 +39,18 @@ "id" : { "type" : "string" }, "label" : { "$ref" : "/schemas/i18n" }, "description" : { "$ref" : "/schemas/i18n" }, - "targetConcept" : { "$ref" : "#/$defs/targetConcept" }, + "targetConcept" : { "$ref" : "/schemas/targetConcept" }, "identifiers" : { "type" : "object", "patternProperties" : { - ".+" : { "$ref" : "#/$defs/targetConcept" } + ".+" : { "$ref" : "/schemas/targetConcept" } } } }, "required" : [ "targetConcept" ] } } - ], - "$defs" : - { - "targetConcept" : - { - "type" : "object", - "properties" : - { - "id" : { "type" : "string" }, - "label" : { "$ref" : "/schemas/i18n" }, - "description" : { "$ref" : "/schemas/i18n" } - }, - "required" : [ "label" ] - } - } + ] } \ No newline at end of file diff --git a/schemas/targetConcept.json b/schemas/targetConcept.json new file mode 100644 index 0000000..6f2abf3 --- /dev/null +++ b/schemas/targetConcept.json @@ -0,0 +1,11 @@ +{ + "$id": "/schemas/targetConcept", + "description" : "A concept in an identifier-based reference system", + "properties" : + { + "id" : { "type" : "string" }, + "label" : { "$ref" : "/schemas/i18n" }, + "description" : { "$ref" : "/schemas/i18n" } + }, + "required" : [ "label" ] +} \ No newline at end of file