Skip to content

Commit

Permalink
Removed use of $def, fixing broken tests (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonblower authored Sep 25, 2024
1 parent a2dd434 commit 1317396
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
20 changes: 3 additions & 17 deletions schemas/referenceSystem.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
}
}
]
}
11 changes: 11 additions & 0 deletions schemas/targetConcept.json
Original file line number Diff line number Diff line change
@@ -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" ]
}

0 comments on commit 1317396

Please sign in to comment.