{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://www.tailoreddeals.info/schemas/products-feed-v2.schema.json","title":"Tailored Deals active products feed v2","type":"object","required":["schemaVersion","feedType","generatedAt","pagination","items"],"properties":{"schemaVersion":{"const":"2.0.0"},"feedType":{"const":"active_products"},"generatedAt":{"type":"string","format":"date-time"},"language":{"type":"string"},"publisher":{"type":"object","required":["name","url"],"properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri"}}},"notice":{"type":"string","description":"Explains stricter active-offer selection and the limits of supplied price and availability data."},"pagination":{"type":"object","required":["page","pageSize","totalItems","totalPages","next"],"properties":{"page":{"type":"integer","minimum":1},"pageSize":{"type":"integer","minimum":1},"totalItems":{"type":"integer","minimum":0},"totalPages":{"type":"integer","minimum":1},"next":{"type":["string","null"],"format":"uri"}}},"items":{"type":"array","items":{"type":"object","required":["id","status","canonicalUrl","name","retailer","price","availability","market","source"],"properties":{"id":{"type":"string"},"status":{"const":"active"},"canonicalUrl":{"type":"string","format":"uri"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"brand":{"type":"string"},"retailer":{"type":"string","minLength":1},"sku":{"type":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":["number","null"],"exclusiveMinimum":0,"description":"Finite positive supplied decimal amount, or null when unusable. Never a zero/free-price inference."},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}}},"availability":{"type":"string"},"market":{"type":"object","required":["slug","name"],"properties":{"slug":{"type":"string"},"name":{"type":"string"}}},"language":{"type":"string"},"category":{"type":"object","required":["name","slug"],"properties":{"name":{"type":"string"},"slug":{"type":"string"}}},"image":{"type":"object","required":["url","alt"],"properties":{"url":{"type":"string"},"alt":{"type":"string"}}},"source":{"type":"object","required":["network","updatedAt"],"properties":{"network":{"type":"string"},"updatedAt":{"type":"string","format":"date-time"},"catalogueUpdatedAt":{"type":"string","format":"date-time"}}},"observations":{"type":"object","required":["language"],"properties":{"language":{"type":"object","required":["value","method","confirmed","notice"],"properties":{"value":{"type":"string"},"method":{"const":"text_heuristic_with_en_GB_fallback"},"confirmed":{"const":false},"notice":{"type":"string"}}}}},"verification":{"type":"object","required":["priceCheckStatus","recordLastCheckedAt","scope"],"properties":{"priceCheckStatus":{"type":"string"},"recordLastCheckedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}]},"scope":{"type":"string"}}},"affiliate":{"type":"boolean"}}}}}}