-
Notifications
You must be signed in to change notification settings - Fork 94
/
schema-data.yml
66 lines (66 loc) · 1.7 KB
/
schema-data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$schema: "http://json-schema.org/draft-07/schema"
title: ForecastHub model data
description: >
This is the schema of the forecasts files, please refer to
https://github.com/european-modelling-hubs/covid19-forecast-hub-europe/wiki/Forecast-format
for more info.
type: object
properties:
forecast_date:
description: The date at which the forecasts were established and submitted
type: array
items:
type: string
format: date
scenario_id:
description: One of forecast or a specified scenario ID
type: array
items:
type: string
pattern: ^forecast$
target:
description: >
'"# wk ahead inc hosp" or "# wk ahead inc case" or "# wk ahead inc death" where # is usually
between -3 and 4'
type: array
items:
type: string
pattern: ^-?\d+ wk ahead inc (hosp|case|death)
target_end_date:
description: Date as YYYY-MM-DD, the last day (Saturday) of the target week
type: array
items:
type: string
format: date
location:
description: 'An ISO-2 country code'
type: array
items:
type: string
enum: ["AT", "BE", "BG", "CH", "CY", "CZ", "DK", "DE", "EE", "ES", "FI", "FR", "GB", "GR", "HR", "HU", "IE", "IS", "IT", "LI", "NO", "LT", "LU", "LV", "MT", "NL", "PL", "PT", "RO", "SE", "SI", "SK"]
type:
description: 'One of "point" or "quantile"'
type: array
items:
type: string
enum:
- point
- quantile
quantile:
type: array
items:
type: ["number", "null"]
value:
type: array
items:
type: integer
minimum: 0
additionalProperties: false
required:
- forecast_date
- target
- target_end_date
- location
- type
- quantile
- value