Skip to content
FNDenisovna edited this page Jun 18, 2023 · 1 revision

Тех. задание:

Структуры данных: { "$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" ] }

Clone this wiki locally