Minor rework of JSON creation.

This commit is contained in:
Jonathan Naylor 2023-01-19 10:08:50 +00:00
parent d6fe3f0cac
commit 0ecf2dec39
6 changed files with 147 additions and 109 deletions

View file

@ -98,7 +98,7 @@
"max": {"$ref": "#/$defs/rssi"},
"ave": {"$ref": "#/$defs/rssi"}
},
"required": ["timestamp", "source_cs", "dg-id", "source", "action", "mode"]
"required": ["timestamp", "source_cs", "dg-id", "source", "action"]
},
"P25": {
@ -160,8 +160,9 @@
"AX.25": {
"type": "object",
"timestamp": {"$ref": "#/$defs/timestamp"},
"source": {"$ref": "#/$defs/ax25_callsign"},
"destination": {"$ref": "#/$defs/ax25_callsign"},
"source": {"$ref": "#/$defs/source"},
"source_cs": {"$ref": "#/$defs/ax25_callsign"},
"destination_cs": {"$ref": "#/$defs/ax25_callsign"},
"digipeaters": {
"type": "array",
"callsign": {"$ref": "#/$defs/ax25_callsign"},