Skip to content

Commit

Permalink
schema: Fix required properties of Annotation, for #333
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiaro committed Oct 29, 2021
1 parent 6416da6 commit 2e99ad6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions docs/schema/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ ChangeLog

The schema specifies a **structure**, **fields** and **codelists** but does not yet enforce validation constraints on most fields.

[Unreleased] - 2021-10-21

Changed
-------
- Required fields `statementPointerTarget` and `motivation` are moved from inside the `anyOf` statement to the top level, as they apply to all motivation types.

[Unreleased] - 2021-03-30
=========================

Expand Down
12 changes: 6 additions & 6 deletions schema/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,15 @@
},
"url": {
"title": "URL",
"description": "A linked resource that annotates, provides context for or enhances this statement. The content of the resource, or the relationship to the statement, MAY be described in the `description` field.",
"description": "A linked resource that annotates, provides context for or enhances this statement. The content of the resource, or the relationship to the statement, MAY be described in the `description` field. This field is REQUIRED if the value of `motivation` is 'linking'.",
"type": "string",
"format": "uri"
}
},
"required": [
"statementPointerTarget",
"motivation"
],
"anyOf": [
{
"properties": {
Expand All @@ -416,11 +420,7 @@
"transformation"
]
}
},
"required": [
"statementPointerTarget",
"motivation"
]
}
}
]
},
Expand Down

0 comments on commit 2e99ad6

Please sign in to comment.