Created
January 9, 2019 07:02
-
-
Save jessb321/51bf039d7aa1bc88aa29ecabaa23d41f to your computer and use it in GitHub Desktop.
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-07/schema", | |
"$id": "https://raw.githubusercontent.com/felixlinker/ed-forge/master/src/validation/ShipObject.schema.json", | |
"title": "ShipObject", | |
"description": "This schema describes a part of ship builds as returned from the Journal API in Elite: Dangerous", | |
"type": "object", | |
"properties": { | |
"Ship": { | |
"description": "The type of the ship, e.g. cutter.", | |
"type": "string" | |
}, | |
"ShipName": { | |
"description": "The player chosen ship name.", | |
"type": "string" | |
}, | |
"ShipIdent": { | |
"description": "The ship's id which is modifiable by the player.", | |
"type": "string" | |
}, | |
"Modules": { | |
"description": "All modules installed on this ship.", | |
"type": "object", | |
"items": { | |
"$ref": "https://raw.githubusercontent.com/felixlinker/ed-forge/master/src/validation/ModuleObject.schema.json" | |
}, | |
"minItems": 1, | |
"uniqueItems": true | |
} | |
}, | |
"required": [ | |
"Ship", | |
"ShipName", | |
"ShipIdent", | |
"Modules" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment