{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "CaseContext", "type": "object", "required": [ "case_id", "customer_id", "customer_name", "app_name", "business_line", "language", "materials", "external_context", "metadata" ], "properties": { "case_id": { "type": "string" }, "customer_id": { "type": "string" }, "customer_name": { "type": "string" }, "app_name": { "type": "string" }, "business_line": { "type": "string" }, "language": { "type": "string" }, "materials": { "type": "object", "required": ["current_policy_text", "prd_text", "permission_items", "sdk_items"], "properties": { "current_policy_text": { "type": "string" }, "prd_text": { "type": "string" }, "permission_items": { "type": "array", "items": { "type": "object", "required": ["name", "purpose", "trigger_page", "required"], "properties": { "name": { "type": "string" }, "purpose": { "type": "string" }, "trigger_page": { "type": "string" }, "required": { "type": "boolean" } } } }, "sdk_items": { "type": "array", "items": { "type": "object", "required": ["name", "vendor", "purpose", "data_items", "privacy_url"], "properties": { "name": { "type": "string" }, "vendor": { "type": "string" }, "purpose": { "type": "string" }, "data_items": { "type": "array", "items": { "type": "string" } }, "privacy_url": { "type": "string" } } } } } }, "external_context": { "type": "object", "required": ["peer_updates", "regulatory_updates"], "properties": { "peer_updates": { "type": "array", "items": { "type": "string" } }, "regulatory_updates": { "type": "array", "items": { "type": "string" } } } }, "metadata": { "type": "object", "required": ["submitted_at", "source"], "properties": { "submitted_at": { "type": "string" }, "source": { "type": "string" } } } } }