From e574358ea9bdfae46a659d2dc370363d45780610 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 8 Apr 2026 23:12:28 +0100 Subject: [PATCH] Make networkRailCorpus.json an object not an array. Object/Array support can be handled on the processor side to support either --- .../network-rail/networkRailCorpus.json | 47 +++++++++---------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/schemas/data-ingress/network-rail/networkRailCorpus.json b/schemas/data-ingress/network-rail/networkRailCorpus.json index 914d971..5d0ea66 100644 --- a/schemas/data-ingress/network-rail/networkRailCorpus.json +++ b/schemas/data-ingress/network-rail/networkRailCorpus.json @@ -2,30 +2,29 @@ "$id": "https://schema.owlboard.info/data-ingress/network-rail/networkRailCorpus.schema.json", "$schema": "https://json-schema.org/draft-07/schema#", "title": "networkRailCorpus", - "type": "array", - "additionalItems": false, - "items": { - "type": "object", - "required": ["t", "n"], - "additionalProperties": false, - "properties": { - "t": { - "type": "string", - "name": "TIPLOC", - "description": "The TIPLOC Code of the location" - }, - "n": { - "type": "string", - "name": "Name", - "description": "The human readable name of the location" - }, - "nc": { - "type": "integer", - "name": "NLC", - "description": "The national location code of the location", - "minimum": 0, - "maximum": 999999 - } + "type": "object", + "required": [ + "t", + "n" + ], + "additionalProperties": false, + "properties": { + "t": { + "type": "string", + "name": "TIPLOC", + "description": "The TIPLOC Code of the location" + }, + "n": { + "type": "string", + "name": "Name", + "description": "The human readable name of the location" + }, + "nc": { + "type": "integer", + "name": "NLC", + "description": "The national location code of the location", + "minimum": 0, + "maximum": 999999 } } } \ No newline at end of file