{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://schema.humancellatlas.org/module/project/6.1.0/contact",
  "description": "Information about a person who submitted or contributed to a project.",
  "additionalProperties": false,
  "required": [
    "contact_name",
    "institution"
  ],
  "title": "contact",
  "type": "object",
  "properties": {
    "describedBy": {
      "description": "The URL reference to the schema.",
      "type": "string",
      "pattern": "^(http|https)://schema.(.*?)humancellatlas.org/module/project/(([0-9]{1,}.[0-9]{1,}.[0-9]{1,})|([a-zA-Z]*?))/contact"
    },
    "schema_version": {
      "description": "The version number of the schema in major.minor.patch format.",
      "type": "string",
      "pattern": "^[0-9]{1,}.[0-9]{1,}.[0-9]{1,}$",
      "example": "4.6.1"
    },
    "contact_name": {
      "description": "Name of any individual who has contributed to this project.",
      "type": "string",
      "example": "Format: 'first, middle, last name', middle can be initial or left blank. Example: John,D,Smith.",
      "user_friendly": "Contact name"
    },
    "email": {
      "description": "Email address for the individual.",
      "type": "string",
      "example": "Enter a valid email address.",
      "format": "email",
      "user_friendly": "Email address"
    },
    "phone": {
      "description": "Phone number of the individual or their lab.",
      "type": "string",
      "example": "Enter a valid phone number, including country code.",
      "user_friendly": "Phone number"
    },
    "institution": {
      "description": "Name of primary institute where the individual works.",
      "type": "string",
      "user_friendly": "Institute"
    },
    "laboratory": {
      "description": "Name of lab or department within the institute where the individual works.",
      "type": "string",
      "user_friendly": "Laboratory/Department"
    },
    "address": {
      "description": "Street address where the individual works.",
      "type": "string",
      "example": "Include street name and number, city, country division, postal code.",
      "user_friendly": "Address"
    },
    "country": {
      "description": "Country where the individual works.",
      "type": "string",
      "user_friendly": "Country"
    },
    "corresponding_contributor": {
      "description": "Whether the individual is a corresponding contributor for this project.",
      "type": "boolean",
      "user_friendly": "Corresponding contributor?",
      "example": "Must be either yes or no."
    },
    "project_role": {
      "description": "Primary role of the person in the project.",
      "type": "string",
      "enum": [
        "principal investigator",
        "co investigator",
        "experimental scientist",
        "computational scientist",
        "clinician",
        "pathologist",
        "technician",
        "external curator",
        "Human Cell Atlas wrangler",
        "other"
      ],
      "example": "principal investigator",
      "user_friendly": "Project role"
    },
    "orcid_id": {
      "description": "The contacts ORCID ID linked to their previous work.",
      "type": "string",
      "example": "0000-1111-2222-3333",
      "user_friendly": "ORCID ID"
    }
  }
}
