{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/seed-variety-lot-lineage",
    "title": "Released Seed Variety & Seed-Lot Lineage",
    "type": "object",
    "required": [
        "variety_name",
        "crop_species",
        "breeder"
    ],
    "properties": {
        "variety_name": {
            "title": "Variety name",
            "type": "string",
            "maxLength": 1000
        },
        "crop_species": {
            "title": "Crop species (scientific name)",
            "type": "string",
            "maxLength": 1000
        },
        "breeder": {
            "title": "Breeder / institution",
            "type": "string",
            "maxLength": 1000
        },
        "parent_glis_dois": {
            "title": "Parent germplasm GLIS IDs",
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Taxonmark IDs (for example TM.AI.2026.7KQ2X) or DOIs registered elsewhere"
        },
        "pedigree": {
            "title": "Pedigree",
            "type": "string",
            "x-widget": "textarea",
            "maxLength": 20000
        },
        "registration_number": {
            "title": "National / PPV&FRA registration number",
            "type": "string",
            "maxLength": 1000
        },
        "release_year": {
            "title": "Release year",
            "type": "integer"
        },
        "seed_lot_number": {
            "title": "Seed lot number",
            "type": "string",
            "maxLength": 1000
        },
        "seed_class": {
            "title": "Seed class",
            "type": "string",
            "enum": [
                "nucleus",
                "breeder",
                "foundation",
                "certified",
                "truthfully-labelled"
            ]
        },
        "certification_agency": {
            "title": "Certification agency",
            "type": "string",
            "maxLength": 1000
        },
        "lot_quantity_kg": {
            "title": "Lot quantity (kg)",
            "type": "number"
        },
        "production_season": {
            "title": "Production season",
            "type": "string",
            "maxLength": 1000
        },
        "germination_pct": {
            "title": "Germination %",
            "type": "number"
        }
    },
    "additionalProperties": true
}