Created
December 24, 2022 15:55
-
-
Save franga2000/ee490ea896623e03a3523ff9d70b2400 to your computer and use it in GitHub Desktop.
marprom.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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