fixed some inconsitency in awards.json and starting awards.schema.json to validate awards.json

JSON-Schemas
Matthew Chambers 2021-08-30 14:01:07 -05:00
rodzic 628e5d598e
commit fb7f925676
2 zmienionych plików z 185 dodań i 148 usunięć

Wyświetl plik

@ -44,7 +44,9 @@
"Phone" "Phone"
], ],
"type": "dxcc2band", "type": "dxcc2band",
"unique": 100 "unique": [
100
]
}, },
"sponsor": "ARRL", "sponsor": "ARRL",
"tooltip": "Five-Band DXCC" "tooltip": "Five-Band DXCC"
@ -139,7 +141,9 @@
"Phone" "Phone"
], ],
"type": "cont2band", "type": "cont2band",
"unique": 6 "unique": [
6
]
}, },
"sponsor": "ARRL", "sponsor": "ARRL",
"tooltip": "Five-Band Worked All Continents" "tooltip": "Five-Band Worked All Continents"
@ -196,7 +200,9 @@
"Phone" "Phone"
], ],
"type": "states2band", "type": "states2band",
"unique": 50 "unique": [
50
]
}, },
"sponsor": "ARRL", "sponsor": "ARRL",
"tooltip": "5 Band Worked All States" "tooltip": "5 Band Worked All States"
@ -665,7 +671,9 @@
"Digital" "Digital"
], ],
"type": "cont52band", "type": "cont52band",
"unique": 5 "unique": [
5
]
}, },
"sponsor": "ERC", "sponsor": "ERC",
"tooltip": "5-Band Worked All Continents" "tooltip": "5-Band Worked All Continents"
@ -5228,7 +5236,9 @@
"FT8" "FT8"
], ],
"type": "calls2dxcc", "type": "calls2dxcc",
"unique": 5 "unique": [
5
]
}, },
"sponsor": "FT8DMC", "sponsor": "FT8DMC",
"tooltip": "Worked All Black Sea" "tooltip": "Worked All Black Sea"
@ -6314,7 +6324,9 @@
"FT8" "FT8"
], ],
"type": "states2band", "type": "states2band",
"unique": 50 "unique": [
50
]
}, },
"sponsor": "FT8DMC", "sponsor": "FT8DMC",
"tooltip": "5-Band Worked All States" "tooltip": "5-Band Worked All States"
@ -9552,7 +9564,9 @@
"Mixed" "Mixed"
], ],
"type": "calls2band", "type": "calls2band",
"unique": 100 "unique": [
100
]
}, },
"sponsor": "GT", "sponsor": "GT",
"tooltip": "Worked 100 Stations in 4 bands" "tooltip": "Worked 100 Stations in 4 bands"

Wyświetl plik

@ -3,7 +3,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema", "$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "List of awards by sponsor and programmatic definitions of each", "description": "List of awards by sponsor and programmatic definitions of each",
"patternProperties": { "patternProperties": {
"[0-9A-Z]{3,10}": { "[0-9A-Z]{2,10}": {
"title": "Awards Tracker Definitions", "title": "Awards Tracker Definitions",
"type": "object", "type": "object",
"required": [ "required": [
@ -14,6 +14,7 @@
"sponsor", "sponsor",
"website" "website"
], ],
"properties": {
"awards": { "awards": {
"description": "A list of awards from this sponsor with a programmatic description of each", "description": "A list of awards from this sponsor with a programmatic description of each",
"type": "object", "type": "object",
@ -27,6 +28,7 @@
"sponsor", "sponsor",
"tooltip" "tooltip"
], ],
"properties": {
"name": { "name": {
"type": "string", "type": "string",
"description": "Full name of the award" "description": "Full name of the award"
@ -121,6 +123,8 @@
"Mixed", "Mixed",
"CW", "CW",
"Digital", "Digital",
"FT8",
"FT4",
"Phone" "Phone"
] ]
} }
@ -139,17 +143,34 @@
"cont5", "cont5",
"cont52band", "cont52band",
"count", "count",
"cqz",
"dxcc", "dxcc",
"dxcc2band", "dxcc2band",
"grids", "grids",
"IOTA",
"mode", "mode",
"state", "numsfx",
"px",
"pxa",
"pxplus",
"sfx",
"states",
"states2band" "states2band"
] ]
}, },
"unique": { "unique": {
"type": "integer", "type": "array",
"description": "Number of uniques that is required" "description": "Number of uniques that is required",
"items": {
"type": "integer"
}
},
"zone": {
"type": "array",
"description": "Zone Numbers that must be worked for award",
"items": {
"type": "integer"
}
} }
} }
}, },
@ -163,6 +184,8 @@
} }
} }
} }
}
}
}, },
"compiledBy": { "compiledBy": {
"description": "The name/callsign of the custodian of this award sponsor data", "description": "The name/callsign of the custodian of this award sponsor data",