{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://fdc3.finos.org/schemas/2.2/context/contact.schema.json",
  "type": "object",
  "title": "Contact",
  "description": "A person contact that can be engaged with through email, calling, messaging, CMS, etc.",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "type": {
          "const": "fdc3.contact"
        },
        "id": {
          "type": "object",
          "title": "Contact Identifiers",
          "description": "Identifiers that relate to the Contact represented by this context",
          "properties": {
            "email": {
              "type": "string",
              "format": "email",
              "title": "Email address",
              "description": "The email address for the contact"
            },
            "FDS_ID": {
              "type": "string",
              "title": "FDS ID",
              "description": "FactSet Permanent Identifier representing the contact"
            }
          }
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "An optional human-readable name for the contact"
        }
      },
      "required": [
        "id"
      ]
    },
    { "$ref": "context.schema.json#/definitions/BaseContext" }
  ],
  "examples": [
    {
      "type": "fdc3.contact",
      "name": "Jane Doe",
      "id": {
        "email": "jane.doe@mail.com"
      }
    }
  ]
}
