{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/AnimalResponsibility.schema.json",
  "title": "AnimalResponsibility",
  "description": "A period during which a person, organization or group holds a stated responsibility for an individual animal or animal group, such as owner, keeper or operator. Each responsibility is a separate record; one does not imply another, and keeping an animal does not establish ownership or residence.",
  "type": "object",
  "properties": {
    "animal_subject": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/IdentifiedAnimalUnit.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The individual animal or animal group to which the residence or responsibility applies, rather than a tag or a registry entry."
    },
    "animal_responsible_actor": {
      "type": "string",
      "format": "uri",
      "description": "The URI of the person, organization or group, such as a household, that holds the stated responsibility for the animal or animal group."
    },
    "animal_responsibility_role": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "The kind of responsibility held, such as owner, keeper or operator, as a code from an identified scheme. The role is not inferred from residence and does not prove legal title. Codes from https://publicschema.org/vocab/animal-responsibility-role can be used where the source has no scheme of its own."
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "description": "The date on which this became effective."
    },
    "end_date": {
      "type": "string",
      "format": "date",
      "description": "The last day on which this is effective. A period includes both its start date and its end date, so a period that applies only on 30 June 2026 has start date 2026-06-30 and end date 2026-06-30."
    },
    "recorded_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the statement or event was entered into its source record. It can differ from when the fact took effect."
    }
  }
}
