{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animalchecklist-com/json-schema/animalchecklist-com-reference-taxon-schema.json",
  "title": "ReferenceTaxon",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/animalchecklist-com-openapi.json#/components/schemas/ReferenceTaxon",
  "type": "object",
  "required": [
    "inatId",
    "nameSci",
    "taxonRank",
    "parentNameSci",
    "categoryId",
    "family",
    "sourceUrl",
    "animalId"
  ],
  "properties": {
    "inatId": {
      "type": "integer",
      "minimum": 1
    },
    "nameSci": {
      "type": "string"
    },
    "taxonRank": {
      "type": "string",
      "description": "Raw iNaturalist rank."
    },
    "parentNameSci": {
      "type": [
        "string",
        "null"
      ]
    },
    "categoryId": {
      "type": "string",
      "enum": [
        "mammals",
        "birds",
        "reptiles",
        "amphibians",
        "fish",
        "insects",
        "other"
      ]
    },
    "family": {
      "type": [
        "string",
        "null"
      ]
    },
    "sourceUrl": {
      "type": "string",
      "format": "uri"
    },
    "animalId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Existing catalog ID. Null when no legacy catalog entry is linked."
    },
    "id": {
      "type": "string",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
      "description": "Slug of the animal taxon, for example `red-fox`."
    },
    "name": {
      "type": "string"
    },
    "nameEn": {
      "type": "string"
    },
    "parentId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "active": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive"
      ]
    },
    "tickable": {
      "type": "boolean",
      "description": "Active supported leaf taxon. Photo presence is not required."
    },
    "image": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "url"
      ],
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}