Make networkRailCorpus.json an object not an array.
All checks were successful
Generate and Release Protos / release (push) Successful in 40s
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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user