Skip to content

Instantly share code, notes, and snippets.

@franga2000
Created December 24, 2022 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franga2000/ee490ea896623e03a3523ff9d70b2400 to your computer and use it in GitHub Desktop.
Save franga2000/ee490ea896623e03a3523ff9d70b2400 to your computer and use it in GitHub Desktop.
marprom.schema.json
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/Welcome9",
"definitions": {
"Welcome9": {
"type": "object",
"additionalProperties": false,
"properties": {
"Response": {
"$ref": "#/definitions/Response"
},
"Lines": {
"type": "array",
"items": {
"$ref": "#/definitions/Line"
}
}
},
"required": [
"Lines",
"Response"
],
"title": "Welcome9"
},
"Line": {
"type": "object",
"additionalProperties": false,
"properties": {
"LineId": {
"type": "integer"
},
"Code": {
"type": "string",
"format": "integer"
},
"Description": {
"type": "string"
},
"Color": {
"type": "string"
},
"routes": {
"type": "array",
"items": {
"$ref": "#/definitions/Route"
}
}
},
"required": [
"Code",
"Color",
"Description",
"LineId",
"routes"
],
"title": "Line"
},
"Route": {
"type": "object",
"additionalProperties": false,
"properties": {
"RouteId": {
"type": "integer"
},
"LineId": {
"type": "integer"
},
"HeadsignName": {
"type": "string"
}
},
"required": [
"HeadsignName",
"LineId",
"RouteId"
],
"title": "Route"
},
"Response": {
"type": "object",
"additionalProperties": false,
"properties": {
"Date": {
"type": "string"
},
"Status": {
"type": "integer"
},
"Message": {
"type": "string"
}
},
"required": [
"Date",
"Message",
"Status"
],
"title": "Response"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment