{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"Generic termination notice for a commercial contract (NOT employment — employment dismissal lives in '{cc}.dismissal.*'). Captures the identifying details of the contract being terminated, the legal basis (enum), the effective date and notice period, the grounds where termination is for cause, any wind-down arrangements and surviving obligations.","required":["sender","recipient","contract_reference","termination_basis","termination_effective_date","notice_period_days","wind_down_arrangements","post_termination_obligations","signatory"],"additionalProperties":false,"properties":{"reference":{"type":"string"},"date":{"type":"string","format":"date"},"sender":{"type":"object","required":["legal_name","address"],"additionalProperties":false,"properties":{"legal_name":{"type":"string","minLength":1},"address":{"type":"string","minLength":1},"representative_name":{"type":"string"},"representative_role":{"type":"string"},"contact_email":{"type":"string","format":"email"}}},"recipient":{"type":"object","required":["legal_name","address"],"additionalProperties":false,"properties":{"legal_name":{"type":"string","minLength":1},"address":{"type":"string","minLength":1},"attention":{"type":"string"}}},"contract_reference":{"type":"object","required":["title","date","parties"],"additionalProperties":false,"properties":{"title":{"type":"string","minLength":1},"date":{"type":"string","format":"date"},"parties":{"type":"string","minLength":1},"reference":{"type":"string"}}},"termination_basis":{"type":"string","enum":["end_of_term","break_clause","breach_unremedied","mutual","insolvency","other"]},"termination_effective_date":{"type":"string","format":"date"},"notice_period_days":{"type":"integer","minimum":0},"grounds_summary":{"type":"string","description":"Required if termination_basis == 'breach_unremedied' or 'other'; describes the unremedied breach or other grounds in sufficient detail to satisfy the contractual notice provisions."},"wind_down_arrangements":{"type":"string","minLength":1,"description":"Transition, data return, final invoicing, handover of deliverables, etc."},"post_termination_obligations":{"type":"array","minItems":1,"items":{"type":"string","minLength":1,"description":"Surviving obligations (confidentiality, IP, non-solicit, warranties, governing law)."}},"signatory":{"type":"object","required":["name","role"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"role":{"type":"string","minLength":1},"place":{"type":"string"},"date":{"type":"string","format":"date"}}}},"allOf":[{"if":{"properties":{"termination_basis":{"const":"breach_unremedied"}},"required":["termination_basis"]},"then":{"required":["grounds_summary"]}},{"if":{"properties":{"termination_basis":{"const":"other"}},"required":["termination_basis"]},"then":{"required":["grounds_summary"]}}]}