It might be helpful to have a convenience function to load hub metadata files. Some requirements/desired behaviors:
{
"round-1": {
"model_tasks": [
{
"task_ids": {
"origin_date": {
"required": ["2022-09-03"],
"optional": null
},
"location": {
"required": {
"$ref": "#/$defs/task_ids/location/us_states"
},
"optional": ["US"]
},
},
"output_types": {
"mean": {
"type_id": {
"required": null,
"optional": ["NA"]
},
"value": {
"type": "integer",
"minimum": 0
}
}
}
},
],
"submissions_due": {
"start": "2022-09-01",
"end": "2022-09-05"
}
},
"$defs": {
"task_ids": {
"location": {
"us_states": ["01", "02", "04", "05", "06", "08", "09", "10", "11", "12", "13", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "44", "45", "46", "47", "48", "49", "50", "51", "53", "54", "55", "56"]
}
},
]
}
{
"round-1": {
"model_tasks": [
{
"task_ids": {
"origin_date": {
"required": ["2022-09-03"],
"optional": null
},
"location": {
"required": ["01", "02", "04", "05", "06", "08", "09", "10", "11", "12", "13", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "44", "45", "46", "47", "48", "49", "50", "51", "53", "54", "55", "56"],
"optional": ["US"]
},
},
"output_types": {
"mean": {
"type_id": {
"required": null,
"optional": ["NA"]
},
"value": {
"type": "integer",
"minimum": 0
}
}
}
},
],
"submissions_due": {
"start": "2022-09-01",
"end": "2022-09-05"
}
},
"$defs": {
"task_ids": {
"location": {
"us_states": ["01", "02", "04", "05", "06", "08", "09", "10", "11", "12", "13", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "44", "45", "46", "47", "48", "49", "50", "51", "53", "54", "55", "56"]
}
},
]
}