-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Тех. задание:

Структуры данных:
{ "$id": "offer.schema.json", "type": "object", "properties": { "id": { "type": "string", "description": "Offer identifier, only numerical symbols are allowed" }, "price": { "type": "integer", "description": "Offer price, value in range from 0 to 10̂9" }, "stock_count": { "type": "integer", "description": "Items left on stocks, value in range from 0 to 10̂9" }, "partner_content": { "type": "object", "properties": { "title": { "type": "string", "description": "Offer title filled in by the partner" }, "description": { "type": "string", "description": "Offer description filled in by the partner" } } } }, "required": [ "id" ] }
{ "$id": "message.schema.json", "type": "object", "properties": { "trace_id": { "type": "string" }, "offer": { "$ref": "offer.schema.json" } }, "required": [ "trace_id", "offer" ] }