{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cpobjects.mycpl.net/schema/message/product_offer.json", "title": "Product offer message", "description": "Product offer message", "type": "object", "properties": { "header": { "description": "Header of the message", "type": "string" }, "body": { "description": "Body of the message", "type": "string" }, "footer": { "description": "Footer of the message", "type": "string" }, "format": { "description": "Format of the text message", "type": "string", "enum": ["text", "markdown", "html"] }, "metadata": { "description": "Whatever you want", "type": "object" }, "products": { "description": "Array of products", "type": "array", "items": { "type": "object", "$ref": "../product.json" } } }, "required": [ "products" ] }