From 131739682ed3aa77d553d4d5c1bfa8c91c212199 Mon Sep 17 00:00:00 2001 From: Jon Blower Date: Wed, 25 Sep 2024 13:34:43 +0100 Subject: [PATCH] Removed use of $def, fixing broken tests (#40) --- 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