Make networkRailCorpus.json an object not an array.
All checks were successful
Generate and Release Protos / release (push) Successful in 40s

Object/Array support can be handled on the processor side to support either
This commit is contained in:
2026-04-08 23:12:28 +01:00
parent 698248487a
commit e574358ea9

View File

@@ -2,30 +2,29 @@
"$id": "https://schema.owlboard.info/data-ingress/network-rail/networkRailCorpus.schema.json", "$id": "https://schema.owlboard.info/data-ingress/network-rail/networkRailCorpus.schema.json",
"$schema": "https://json-schema.org/draft-07/schema#", "$schema": "https://json-schema.org/draft-07/schema#",
"title": "networkRailCorpus", "title": "networkRailCorpus",
"type": "array", "type": "object",
"additionalItems": false, "required": [
"items": { "t",
"type": "object", "n"
"required": ["t", "n"], ],
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"t": { "t": {
"type": "string", "type": "string",
"name": "TIPLOC", "name": "TIPLOC",
"description": "The TIPLOC Code of the location" "description": "The TIPLOC Code of the location"
}, },
"n": { "n": {
"type": "string", "type": "string",
"name": "Name", "name": "Name",
"description": "The human readable name of the location" "description": "The human readable name of the location"
}, },
"nc": { "nc": {
"type": "integer", "type": "integer",
"name": "NLC", "name": "NLC",
"description": "The national location code of the location", "description": "The national location code of the location",
"minimum": 0, "minimum": 0,
"maximum": 999999 "maximum": 999999
}
} }
} }
} }