Skip to content

Commit

Permalink
Encode point estimate output type IDs with null. Resolves #109
Browse files Browse the repository at this point in the history
  • Loading branch information
annakrystalli committed Oct 25, 2024
1 parent 392cfdc commit bfabc6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# v4.0.0

* BREAKING CHANGE: Introduction of `is_required` boolean property at the `output_type` level to configure whether the output type is required for submissions to be considered valid (#99).
* BREAKING CHANGE: Disallowed `optional` property in `output_type_id` objects. As such, when a given output type is submitted, values for all output type IDs much be submitted (#100,#101, #102).
* BREAKING CHANGE: Disallowed `optional` property in `output_type_id` objects. As such, when a given output type is submitted, values for all output type IDs much be submitted (#100,#101, #102).
* BREAKING CHANGE: To improve cross-platform interoperability, expectation of missing values in point estimate `output_type_id` `required` properties now encoded with `null` instead of `["NA"]` (#109).
* Introduction of optional `derived_task_ids` properties to enable hub administrators to define derived task IDs (i.e. task IDs whose values depend on the values of other task IDs). The higher level `derived_task_ids` property sets the property globally at the hub level but can be overriden by the round level `derived_task_ids` property. The property allows for primarily validation functionality to ignore such task IDs when appropriate which can significantly improve validation efficency (#96). For more information see [`hubValidations` documentation on ignoring derived task IDs](https://hubverse-org.github.io/hubValidations/articles/validate-pr.html#ignoring-derived-task-ids-to-improve-performance).
* Added more specific schema for `target_keys` to ensure only `string` properties are allowed (#97)

Expand Down
28 changes: 8 additions & 20 deletions v4.0.0/tasks-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -652,23 +652,17 @@
"description": "Object defining the mean of the predictive distribution output type.",
"properties": {
"output_type_id": {
"description": "output_type_id is not meaningful for a point estimate output_type.",
"description": "output_type_id is not meaningful for a point estimate output_type. Must be null",
"examples": [
{
"required": [
"NA"
]
"required": null
}
],
"type": "object",
"properties": {
"required": {
"description": "Not relevant for point estimate output types. Must be single element 'NA' array.",
"type": "array",
"items": {
"const": "NA",
"maxItems": 1
}
"description": "Not relevant for point estimate output types. Must be null.",
"type": "null"
}
},
"required": [
Expand Down Expand Up @@ -736,23 +730,17 @@
"description": "Object defining the median of the predictive distribution output type",
"properties": {
"output_type_id": {
"description": "output_type_id is not meaningful for a point estimate output_type.",
"description": "output_type_id is not meaningful for a point estimate output_type. Must be null",
"examples": [
{
"required": [
"NA"
]
"required": null
}
],
"type": "object",
"properties": {
"required": {
"description": "Not relevant for point estimate output types. Must be single element 'NA' array.",
"type": "array",
"items": {
"const": "NA",
"maxItems": 1
}
"description": "Not relevant for point estimate output types. Must be null.",
"type": "null"
}
},
"required": [
Expand Down

0 comments on commit bfabc6d

Please sign in to comment.