{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/primecutsnursery-com/json-schema/primecutsnursery-com-breeder-detail-schema.json",
  "title": "BreederDetail",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/primecutsnursery-com-openapi.yml#/components/schemas/BreederDetail",
  "allOf": [
    {
      "$ref": "#/$defs/BreederSummary"
    },
    {
      "type": "object",
      "properties": {
        "strains": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "Indica",
                  "Sativa",
                  "Hybrid"
                ]
              },
              "lineage": {
                "type": "string"
              },
              "attribution": {
                "type": "string",
                "description": "Free-text breeder field this attribution matched"
              },
              "url": {
                "type": "string",
                "description": "Canonical HTML page for this resource",
                "format": "uri"
              },
              "on_menu": {
                "type": "boolean"
              }
            },
            "required": [
              "slug",
              "name",
              "type",
              "url",
              "on_menu"
            ]
          }
        },
        "menu_strains": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "description": "Canonical HTML page for this resource",
                "format": "uri"
              }
            },
            "required": [
              "slug",
              "name",
              "url"
            ]
          }
        },
        "collaborators": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "shared_strains": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "url": {
                "type": "string",
                "description": "Canonical HTML page for this resource",
                "format": "uri"
              }
            },
            "required": [
              "slug",
              "name",
              "shared_strains",
              "url"
            ]
          }
        }
      },
      "required": [
        "strains",
        "menu_strains",
        "collaborators"
      ]
    }
  ],
  "$defs": {
    "BreederSummary": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "location": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "summary": {
          "type": "string",
          "description": "Documented public history of the breeder"
        },
        "strain_count": {
          "type": "integer",
          "description": "Encyclopedia cultivars attributed to this breeder"
        },
        "on_menu_count": {
          "type": "integer",
          "description": "Of those, how many Prime Cuts sells as clones"
        },
        "url": {
          "type": "string",
          "description": "Breeder hub page",
          "format": "uri"
        },
        "api_url": {
          "type": "string",
          "description": "Canonical HTML page for this resource",
          "format": "uri"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "slug",
        "name",
        "summary",
        "strain_count",
        "on_menu_count",
        "url",
        "api_url"
      ]
    }
  }
}