{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tenet-industries/json-schema/tenet-industries-line-request-schema.json",
  "title": "LineRequest",
  "description": "A source choice; a vendor SKU identifies a bought part, with packaging required when several formats are available.",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tenet-industries-openapi.yml#/components/schemas/LineRequest",
  "properties": {
    "qty_per_board": {
      "minimum": 1,
      "title": "Qty Per Board",
      "type": "integer"
    },
    "vendor": {
      "anyOf": [
        {
          "enum": [
            "Digi-Key",
            "Mouser",
            "Farnell",
            "LCSC"
          ],
          "type": "string"
        },
        {
          "enum": [
            "Consignment",
            "Stock"
          ],
          "type": "string"
        }
      ],
      "title": "Vendor"
    },
    "mpn": {
      "default": "",
      "title": "Mpn",
      "type": "string"
    },
    "manufacturer": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Manufacturer"
    },
    "packaging": {
      "anyOf": [
        {
          "enum": [
            "Reel",
            "Ammo",
            "Re-reel",
            "Cut Tape",
            "Tray",
            "Tube",
            "Bulk",
            "Other"
          ],
          "type": "string"
        },
        {
          "const": "unknown",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Packaging"
    },
    "sku": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sku"
    }
  },
  "required": [
    "qty_per_board",
    "vendor"
  ],
  "type": "object"
}