{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animalchecklist-com/json-schema/animalchecklist-com-animal-summary-schema.json",
  "title": "AnimalSummary",
  "description": "Card-sized animal taxon used by list and search answers.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/animalchecklist-com-openapi.json#/components/schemas/AnimalSummary",
  "type": "object",
  "required": [
    "id",
    "name",
    "nameEn",
    "nameSci",
    "categoryId",
    "habitats",
    "image"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
      "description": "Slug of the animal taxon, for example `red-fox`."
    },
    "name": {
      "type": "string",
      "description": "Name in the requested language, English when none exists."
    },
    "nameEn": {
      "type": "string",
      "description": "English common name."
    },
    "nameSci": {
      "type": "string",
      "description": "Scientific name."
    },
    "taxonRank": {
      "type": "string",
      "default": "species",
      "description": "Taxonomic rank. Legacy records default to species."
    },
    "parentNameSci": {
      "type": [
        "string",
        "null"
      ],
      "description": "Parent species scientific name for a subspecies. Null for species."
    },
    "categoryId": {
      "type": "string",
      "enum": [
        "mammals",
        "birds",
        "reptiles",
        "amphibians",
        "fish",
        "insects",
        "other"
      ]
    },
    "habitats": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "forest",
          "grassland",
          "freshwater",
          "sea",
          "mountains",
          "urban",
          "farm",
          "zoo",
          "savanna",
          "jungle",
          "arctic",
          "desert"
        ]
      }
    },
    "tickable": {
      "type": "boolean",
      "description": "Whether a new checklist sighting is allowed."
    },
    "sourceUrl": {
      "type": "string",
      "format": "uri"
    },
    "image": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "url"
      ],
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}