Skip to content

Commit

Permalink
Add if-conditional for type in componentList
Browse files Browse the repository at this point in the history
  • Loading branch information
maipet committed Jun 6, 2024
1 parent 3619c74 commit b051fac
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/test/resources/schemas/complexSubject.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,20 @@
"title": "Date of death of ta person as subject heading",
"type": "string"
}

},
"required": [
"type",
"label"
],
"allOf": [
{
"if": {
"required": ["source"]
},
"then": {
"required": ["type"]
}
}
]
}
}
Expand All @@ -102,4 +111,4 @@
"label",
"componentList"
]
}
}

0 comments on commit b051fac

Please sign in to comment.