Skip to content

Instantly share code, notes, and snippets.

@jessb321
Created January 9, 2019 07:02
Show Gist options
  • Save jessb321/51bf039d7aa1bc88aa29ecabaa23d41f to your computer and use it in GitHub Desktop.
Save jessb321/51bf039d7aa1bc88aa29ecabaa23d41f to your computer and use it in GitHub Desktop.
{
"$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