summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-01-16 10:50:39 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-01-16 10:50:39 +0100
commit515db153b53a5192516f8851187784909aa3994a (patch)
tree57aef8ef652b7d3aea32654e9b733880c278258b
parent796a7c44f24e7f28e05800cfc2ca1a1d19d292fd (diff)
schema.json: use standard pointer syntaxmain
this allows schema.json to be used with python3-jsonschema
-rw-r--r--schema.json23
1 files changed, 8 insertions, 15 deletions
diff --git a/schema.json b/schema.json
index 210df4a..1e89c98 100644
--- a/schema.json
+++ b/schema.json
@@ -23,13 +23,12 @@
"type": "object",
"description": "dict mapping train numbers to probably valid train objects",
"additionalProperties": {
- "$ref": "#train"
+ "$ref": "#/definitions/train"
}
}
},
"definitions": {
"traincomposition": {
- "$id": "#traincomposition",
"type": "object",
"properties": {
"train_variants": {
@@ -38,14 +37,13 @@
"additionalProperties": {
"type": "array",
"items": {
- "$ref": "#train"
+ "$ref": "#/definitions/train"
}
}
}
}
},
"train": {
- "$id": "#train",
"type": "object",
"properties": {
"rawType": {
@@ -74,30 +72,29 @@
"description": "true if this is an empty train without passenger service (\"Leerfahrt\")"
},
"route": {
- "$ref": "#route"
+ "$ref": "#/definitions/route"
},
"commonAttr": {
- "$ref": "#trainAttr"
+ "$ref": "#/definitions/trainAttr"
},
"attrVariants": {
"type": "array",
"items": {
- "$ref": "#trainAttr"
+ "$ref": "#/definitions/trainAttr"
}
},
"cycle": {
- "$ref": "#cycle"
+ "$ref": "#/definitions/cycle"
},
"hasWagon": {
- "$ref": "#hasWagon"
+ "$ref": "#/definitions/hasWagon"
},
"wagons": {
- "$ref": "#wagons"
+ "$ref": "#/definitions/wagons"
}
}
},
"route": {
- "$id": "#route",
"type": "object",
"properties": {
"preStart": {
@@ -128,7 +125,6 @@
}
},
"trainAttr": {
- "$id": "#trainAttr",
"type": "object",
"properties": {
"brakingPercentage": {
@@ -163,7 +159,6 @@
}
},
"cycle": {
- "$id": "#cycle",
"type": "object",
"additionalProperties": {
"type": "object",
@@ -184,7 +179,6 @@
}
},
"hasWagon": {
- "$id": "#hasWagon",
"type": "object",
"additionalProperties": {
"type": "boolean",
@@ -198,7 +192,6 @@
}
},
"wagons": {
- "$id": "#wagons",
"type": "array",
"items": {
"type": "object",