{
"name": "my-dictionary",
"version": "1.0",
"schemas": [
{
"name": "donor",
"description": "Core donor record",
"fields": [
{
"name": "donor_id",
"valueType": "string",
"description": "Unique identifier for the donor",
"restrictions": {
"required": true,
"regex": "^DO-[0-9]{3,}$"
}
}
],
"restrictions": {
"uniqueKey": ["donor_id"]
}
},
{
"name": "fam",
"description": "Core donor record",
"fields": [
{
"name": "donor_ids",
"valueType": "string",
"isArray": true,
"delimiter": "|",
"description": "Unique identifier for the donor",
"restrictions": {
"required": true,
"regex": "^DO-[0-9]{3,}$"
}
}
],
"restrictions": {
"foreignKey": [
{
"schema": "donor",
"mappings": [
{
"local": "donor_ids",
"foreign": "donor_id"
}
]
}
]
}
}
]
}
Re 2.
Example text:
Arrays of `donor_id` as defined in the donor schema. .
Each array element must reference an existing: donor_id in the donor schema.
Array elements must be unique.
Summary of request
Details
As an example I have the following schema:
Where in
fam, multipledonor_ids(in an array) can referencedonor_idindonore.g.
["A","A","B"]Desired solution
Re 2.
Example text:
Additional context
Diagram viewer looks good