{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "id": "https://eddn.edcd.io/schemas/blackmarket/1#",
    "properties": {
        "$schemaRef": {
            "type": "string"
        },
        "header": {
            "additionalProperties": true,
            "properties": {
                "gatewayTimestamp": {
                    "_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.",
                    "type": "string"
                },
                "softwareName": {
                    "type": "string"
                },
                "softwareVersion": {
                    "type": "string"
                },
                "uploaderID": {
                    "type": "string"
                }
            },
            "required": [
                "uploaderID",
                "softwareName",
                "softwareVersion"
            ],
            "type": "object"
        },
        "message": {
            "additionalProperties": true,
            "description": "Contains all properties from the listed events in the client's journal minus Localised strings and the properties marked below as 'disallowed'",
            "properties": {
                "marketId": {
                    "type": "number"
                },
                "name": {
                    "description": "Commodity name as returned by the MarketSell entry in the Journal",
                    "minLength": 1,
                    "type": "string"
                },
                "prohibited": {
                    "description": "Whether the commodity is prohibited at this station",
                    "type": "boolean"
                },
                "sellPrice": {
                    "description": "Price to sell to the market",
                    "type": "integer"
                },
                "stationName": {
                    "minLength": 1,
                    "type": "string"
                },
                "systemName": {
                    "minLength": 1,
                    "type": "string"
                },
                "timestamp": {
                    "_format": "date-time",
                    "type": "string"
                }
            },
            "required": [
                "systemName",
                "stationName",
                "timestamp",
                "name",
                "sellPrice",
                "prohibited"
            ],
            "type": "object"
        }
    },
    "required": [
        "$schemaRef",
        "header",
        "message"
    ],
    "type": "object"
}