{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/tm-forum/refs/heads/main/json-schema/tmf632-party-management-contact-medium-schema.json", "title": "ContactMedium", "description": "ContactMedium schema from TM Forum API", "allOf": [ { "$ref": "#/components/schemas/Extensible" }, { "type": "object", "description": "Indicates the contact medium that could be used to contact the party.", "properties": { "id": { "type": "string", "description": "Identifier for this contact medium." }, "preferred": { "type": "boolean", "description": "If true, indicates that is the preferred contact medium" }, "contactType": { "type": "string", "description": "Type of the contact medium to qualifiy it like pro email / personal email. This is not used to define the contact medium used." }, "validFor": { "$ref": "#/components/schemas/TimePeriod" } } } ], "discriminator": { "propertyName": "@type", "mapping": { "ContactMedium": "#/components/schemas/ContactMedium", "SocialContactMedium": "#/components/schemas/SocialContactMedium", "PhoneContactMedium": "#/components/schemas/PhoneContactMedium", "GeographicAddressContactMedium": "#/components/schemas/GeographicAddressContactMedium", "FaxContactMedium": "#/components/schemas/FaxContactMedium", "EmailContactMedium": "#/components/schemas/EmailContactMedium" } } }