21 lines
1.2 KiB
JSON
21 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["occurredAt", "playerId", "tradeKind", "itemCount", "currencyDelta", "suspicious"],
|
|
"properties": {
|
|
"occurredAt": { "type": "string", "format": "date-time", "minLength": 1, "maxLength": 40 },
|
|
"source": { "type": "string", "enum": ["companion", "log-projection", "scum.trade"] },
|
|
"playerId": { "type": "string", "minLength": 1, "maxLength": 96 },
|
|
"counterpartyPlayerId": { "type": "string", "minLength": 1, "maxLength": 96 },
|
|
"itemCode": { "type": "string", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128 },
|
|
"tradeVerb": { "type": "string", "enum": ["purchased", "sold"] },
|
|
"tradeKind": { "type": "string", "enum": ["purchase", "sale", "transfer", "unknown"] },
|
|
"quantity": { "type": "integer", "minimum": 0, "maximum": 1000000000 },
|
|
"itemCount": { "type": "integer", "minimum": 0, "maximum": 1000 },
|
|
"price": { "type": "integer", "minimum": -1000000000, "maximum": 1000000000 },
|
|
"currencyDelta": { "type": "integer", "minimum": -1000000000, "maximum": 1000000000 },
|
|
"suspicious": { "type": "boolean" }
|
|
}
|
|
}
|