Skip to content

Commit

Permalink
Merge pull request #108 from datacontract/model-quality
Browse files Browse the repository at this point in the history
JSON Schema: Support quality on model level
  • Loading branch information
simonharrer authored Dec 10, 2024
2 parents 04d3c49 + bfbe6a8 commit f3e4fd9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions datacontract.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,12 @@
},
"description": "The compound primary key of the model."
},
"quality": {
"type": "array",
"items": {
"$ref": "#/$defs/Quality"
}
},
"examples": {
"type": "array"
},
Expand Down Expand Up @@ -1704,6 +1710,20 @@
}
}
},
{
"if": {
"properties": {
"type": {
"const": "text"
}
}
},
"then": {
"required": [
"description"
]
}
},
{
"if": {
"properties": {
Expand Down

0 comments on commit f3e4fd9

Please sign in to comment.