42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "SCUMRewardDeliverPayload",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["grantId", "playerId", "items"],
|
|
"properties": {
|
|
"playerId": {
|
|
"type": "string",
|
|
"maxLength": 96,
|
|
"pattern": "^[A-Za-z0-9_.:-]{1,96}$"
|
|
},
|
|
"grantId": {
|
|
"type": "string",
|
|
"maxLength": 96,
|
|
"pattern": "^[A-Za-z0-9_.:-]{1,96}$"
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["catalogCode", "quantity"],
|
|
"properties": {
|
|
"catalogCode": { "type": "string", "maxLength": 128, "pattern": "^[A-Za-z0-9_.-]{1,128}$" },
|
|
"quantity": { "type": "integer", "minimum": 1 },
|
|
"probability": { "type": "number", "minimum": 0, "maximum": 100 },
|
|
"durability": { "type": "number", "minimum": 0, "maximum": 100 }
|
|
}
|
|
}
|
|
},
|
|
"operations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 4096
|
|
}
|
|
}
|
|
}
|
|
}
|