Last active
August 29, 2015 14:22
-
-
Save Marginal/28211b6b7cb3e0170b9a to your computer and use it in GitHub Desktop.
Proposed new schema
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-04/schema#", | |
"id": "http://schemas.elite-markets.net/eddn/outfitting/1#", | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"$schemaRef": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"header": { | |
"type": "object", | |
"additionalProperties": true, | |
"properties": { | |
"uploaderID": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"softwareName": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"softwareVersion": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"gatewayTimestamp": { | |
"type": "string", | |
"format": "date-time", | |
"description": "Timestamp upon receipt at the gateway. If present, this property will be overwritten by the gateway; submitters are not intended to populate this property.", | |
"additionalProperties": false | |
} | |
} | |
}, | |
"message": { | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"systemName": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"stationName": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"timestamp": { | |
"type": "string", | |
"format": "date-time", | |
"additionalProperties": false | |
}, | |
"modules": { | |
"type": "array", | |
"additionalProperties": false, | |
"uniqueItems": true, | |
"items": { | |
"type": "integer", | |
"additionalProperties": false | |
} | |
} | |
}, | |
"required": [ | |
"systemName", | |
"stationName", | |
"modules", | |
"timestamp" | |
] | |
} | |
}, | |
"required": [ | |
"$schemaRef", | |
"header", | |
"message" | |
] | |
} |
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-04/schema#", | |
"id": "http://schemas.elite-markets.net/eddn/shipyard/1#", | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"$schemaRef": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"header": { | |
"type": "object", | |
"additionalProperties": true, | |
"properties": { | |
"uploaderID": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"softwareName": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"softwareVersion": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"gatewayTimestamp": { | |
"type": "string", | |
"format": "date-time", | |
"description": "Timestamp upon receipt at the gateway. If present, this property will be overwritten by the gateway; submitters are not intended to populate this property.", | |
"additionalProperties": false | |
} | |
} | |
}, | |
"message": { | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"systemName": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"stationName": { | |
"type": "string", | |
"additionalProperties": false | |
}, | |
"timestamp": { | |
"type": "string", | |
"format": "date-time", | |
"additionalProperties": false | |
}, | |
"ships": { | |
"type": "array", | |
"additionalProperties": false, | |
"uniqueItems": true, | |
"items": { | |
"type": "integer", | |
"additionalProperties": false | |
} | |
} | |
}, | |
"required": [ | |
"systemName", | |
"stationName", | |
"ships", | |
"timestamp" | |
] | |
} | |
}, | |
"required": [ | |
"$schemaRef", | |
"header", | |
"message" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment