{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "attorney": {
      "properties": {
        "email": {
          "type": "string"
        },
        "firm": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "role": {
          "description": "e.g. 'Lead Attorney', 'Attorney to be Noticed'.",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "main": {
      "description": "A party to the case and its attorneys of record.",
      "key": "tid",
      "record": {
        "properties": {
          "attorneys": {
            "items": {
              "ref": "#attorney",
              "type": "ref"
            },
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "description": "e.g. 'Plaintiff', 'Defendant', 'Petitioner', 'Respondent', 'Amicus'.",
            "type": "string"
          },
          "source": {
            "ref": "org.rcape.docket#source",
            "type": "ref"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.rcape.party",
  "lexicon": 1
}
