Skip to content

Commit

Permalink
Restricted the target_keys object to contain only a single key valu…
Browse files Browse the repository at this point in the history
…e pair. Resolves #117
  • Loading branch information
annakrystalli committed Dec 17, 2024
1 parent 43b2c8a commit 0afa40e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This release contains the following non-breaking changes:

* Added explicit checks of `round_id` format through a regex `pattern` check to the `round.round_id` property when `round.round_id_from_variable` is `false`. This provides upfront validation of the expected format of manual round IDs (i.e. those not source from a task ID) (#112).
* Restricted the `target_keys` object to contain only a single key value pair (if not `null`). This means that target keys can now only consist of a single value from a single task ID (#117).

# v4.0.0

Expand Down
10 changes: 2 additions & 8 deletions v4.0.1/tasks-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1290,20 +1290,14 @@
{
"target": "peak week hosp"
},
{
"target_variable": "hosp",
"target_outcome": "inc"
},
{
"target_variable": "case",
"target_outcome": "peak week"
},
null
],
"type": [
"object",
"null"
],
"minProperties": 1,
"maxProperties": 1,
"additionalProperties": {
"type": "string"
}
Expand Down

0 comments on commit 0afa40e

Please sign in to comment.