Skip to content

Commit ac83540

Browse files
Merge pull request #2291 from reichlab/ls/update-to-v6-schema
Update to v6 schema
2 parents 68ee9f8 + 9e68e24 commit ac83540

File tree

3 files changed

+32
-16
lines changed

3 files changed

+32
-16
lines changed

hub-config/admin.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"schema_version": "https://raw.githubusercontent.com/hubverse-org/schemas/main/v3.0.1/admin-schema.json",
2+
"schema_version": "https://raw.githubusercontent.com/hubverse-org/schemas/main/v6.0.0/admin-schema.json",
33
"name": "US CDC FluSight",
44
"maintainer": "US CDC",
55
"contact": {
@@ -9,11 +9,10 @@
99
"repository": {
1010
"host": "github",
1111
"owner": "cdcepi",
12-
"repository": "FluSight-forecast-hub"
12+
"name": "FluSight-forecast-hub"
1313
},
1414
"file_format": ["csv", "parquet"],
1515
"timezone": "US/Eastern",
16-
"model_output_dir": "model-output",
1716
"cloud": {
1817
"enabled": true,
1918
"host": {

hub-config/target-data.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"schema_version": "https://raw.githubusercontent.com/hubverse-org/schemas/main/v6.0.0/target-data-schema.json",
3+
"observable_unit": ["target_end_date", "location", "target"],
4+
"date_col": "target_end_date",
5+
"versioned": true,
6+
"time-series": {
7+
"non_task_id_schema": {
8+
"location_name": "character",
9+
"weekly_rate": "double"
10+
}
11+
},
12+
"oracle-output": {
13+
"has_output_type_ids": true,
14+
"observable_unit": ["target_end_date", "location", "target", "horizon"],
15+
"versioned": true
16+
}
17+
}

hub-config/tasks.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"schema_version": "https://raw.githubusercontent.com/hubverse-org/schemas/main/v3.0.1/tasks-schema.json",
2+
"schema_version": "https://raw.githubusercontent.com/hubverse-org/schemas/main/v6.0.0/tasks-schema.json",
33
"rounds": [
44
{
55
"round_id_from_variable": true,
@@ -146,9 +146,9 @@
146146
"stable",
147147
"increase",
148148
"large_increase"
149-
],
150-
"optional": null
149+
]
151150
},
151+
"is_required": false,
152152
"value": {
153153
"type": "double",
154154
"minimum": 0,
@@ -330,23 +330,23 @@
330330
0.95,
331331
0.975,
332332
0.99
333-
],
334-
"optional": null
333+
]
335334
},
335+
"is_required": true,
336336
"value": {
337337
"type": "double",
338338
"minimum": 0
339339
}
340340
},
341341
"sample": {
342342
"output_type_id_params": {
343-
"is_required": false,
344343
"type": "character",
345344
"max_length": 15,
346345
"min_samples_per_task": 100,
347346
"max_samples_per_task": 100,
348347
"compound_taskid_set" : ["reference_date", "location", "target"]
349348
},
349+
"is_required": false,
350350
"value": {
351351
"type": "integer",
352352
"minimum": 0
@@ -497,9 +497,9 @@
497497
0.95,
498498
0.975,
499499
0.99
500-
],
501-
"optional": null
500+
]
502501
},
502+
"is_required": false,
503503
"value": {
504504
"type": "double",
505505
"minimum": 0
@@ -646,9 +646,9 @@
646646
"2026-03-14", "2026-03-21", "2026-03-28",
647647
"2026-04-04", "2026-04-11", "2026-04-18",
648648
"2026-04-25", "2026-05-02"
649-
],
650-
"optional": null
649+
]
651650
},
651+
"is_required": false,
652652
"value": {
653653
"type": "double",
654654
"minimum": 0,
@@ -829,9 +829,9 @@
829829
0.95,
830830
0.975,
831831
0.99
832-
],
833-
"optional": null
832+
]
834833
},
834+
"is_required": false,
835835
"value": {
836836
"type": "double",
837837
"minimum": 0,
@@ -840,13 +840,13 @@
840840
},
841841
"sample": {
842842
"output_type_id_params": {
843-
"is_required": false,
844843
"type": "character",
845844
"max_length": 15,
846845
"min_samples_per_task": 100,
847846
"max_samples_per_task": 100,
848847
"compound_taskid_set" : ["reference_date", "location", "target"]
849848
},
849+
"is_required" : false,
850850
"value": {
851851
"type": "double",
852852
"minimum": 0,

0 commit comments

Comments
 (0)