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

Wyświetl plik

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