content: {
    "$defs": {
      "Unit": {
        "description": "Unit describes how the quantity of the product should be interpreted either using a GOBL key, or UN/ECE code.",
        "oneOf": [
          {
            "const": "mg",
            "title": "Milligrams"
          },
          {
            "const": "g",
            "title": "Metric grams"
          },
          {
            "const": "kg",
            "title": "Metric kilograms"
          },
          {
            "const": "t",
            "title": "Metric tons"
          },
          {
            "const": "mm",
            "title": "Milimetres"
          },
          {
            "const": "cm",
            "title": "Centimetres"
          },
          {
            "const": "m",
            "title": "Metres"
          },
          {
            "const": "km",
            "title": "Kilometers"
          },
          {
            "const": "in",
            "title": "Inches"
          },
          {
            "const": "ft",
            "title": "Feet"
          },
          {
            "const": "m2",
            "title": "Square metres"
          },
          {
            "const": "m3",
            "title": "Cubic metres"
          },
          {
            "const": "ml",
            "title": "Millilitres"
          },
          {
            "const": "cl",
            "title": "Centilitres"
          },
          {
            "const": "l",
            "title": "Litres"
          },
          {
            "const": "w",
            "title": "Watts"
          },
          {
            "const": "kw",
            "title": "Kilowatts"
          },
          {
            "const": "kwh",
            "title": "Kilowatt Hours"
          },
          {
            "const": "rate",
            "description": "A unit of quantity expressed as a rate for usage of a facility or service.",
            "title": "Rate"
          },
          {
            "const": "mon",
            "description": "Unit of time equal to 1/12 of a year of 365,25 days.",
            "title": "Months"
          },
          {
            "const": "day",
            "title": "Days"
          },
          {
            "const": "s",
            "title": "Seconds"
          },
          {
            "const": "h",
            "title": "Hours"
          },
          {
            "const": "min",
            "title": "Minutes"
          },
          {
            "const": "piece",
            "description": "A unit of count defining the number of pieces (piece: a single item, article or exemplar).",
            "title": "Pieces"
          },
          {
            "const": "item",
            "description": " A unit of count defining the number of items regarded as separate units.",
            "title": "Items"
          },
          {
            "const": "pair",
            "description": "A unit of count defining the number of pairs (pair: item described by two's).",
            "title": "Pairs"
          },
          {
            "const": "dozen",
            "description": "A unit of count defining the number of units in multiples of 12.",
            "title": "Dozens"
          },
          {
            "const": "assortment",
            "description": "A unit of count defining the number of assortments (assortment: a collection of items or components of a single product packaged together).",
            "title": "Assortments"
          },
          {
            "const": "service",
            "description": "A unit of count defining the number of service units (service unit: defined period / property / facility / utility of supply).",
            "title": "Service Units"
          },
          {
            "const": "job",
            "description": "A unit of count defining the number of jobs.",
            "title": "Jobs"
          },
          {
            "const": "activity",
            "description": "A unit of count defining the number of activities (activity: a unit of work or action).",
            "title": "Activities"
          },
          {
            "const": "trip",
            "description": "A unit of count defining the number of trips (trip: a journey to a place and back again).",
            "title": "Trips"
          },
          {
            "const": "group",
            "description": "A unit of count defining the number of groups (group: set of items classified together).",
            "title": "Groups"
          },
          {
            "const": "outfit",
            "description": "A unit of count defining the number of outfits (outfit: a complete set of equipment / materials / objects used for a specific purpose).",
            "title": "Outfits"
          },
          {
            "const": "kit",
            "description": "A unit of count defining the number of kits (kit: tub, barrel or pail).",
            "title": "Kits"
          },
          {
            "const": "basebox",
            "description": "A unit of area of 112 sheets of tin mil products (tin plate, tin free steel or black plate) 14 by 20 inches, or 31,360 square inches.",
            "title": "Base Boxes"
          },
          {
            "const": "pk",
            "description": "A unit of count defining the number of items per bulk pack.",
            "title": "Bulk Packs"
          },
          {
            "const": "bag",
            "title": "Bags"
          },
          {
            "const": "box",
            "title": "Boxes"
          },
          {
            "const": "bin",
            "title": "Bins"
          },
          {
            "const": "can",
            "title": "Cans"
          },
          {
            "const": "tub",
            "title": "Tubs"
          },
          {
            "const": "case",
            "title": "Cases"
          },
          {
            "const": "tray",
            "title": "Trays"
          },
          {
            "const": "portion",
            "title": "Portions"
          },
          {
            "const": "set",
            "description": "A unit of count defining the number of sets (set: a number of objects grouped together).",
            "title": "Sets"
          },
          {
            "const": "roll",
            "title": "Rolls"
          },
          {
            "const": "carton",
            "title": "Cartons"
          },
          {
            "const": "cylinder",
            "title": "Cylinders"
          },
          {
            "const": "barrel",
            "title": "Barrels"
          },
          {
            "const": "jerrican",
            "description": "Jerrican, cylindrical",
            "title": "Jerricans"
          },
          {
            "const": "carboy",
            "title": "Carboys"
          },
          {
            "const": "demijohn",
            "title": "Demijohn"
          },
          {
            "const": "bottle",
            "title": "Bottles"
          },
          {
            "const": "6pack",
            "title": "Six Packs"
          },
          {
            "const": "canister",
            "title": "Canisters"
          },
          {
            "const": "pkg",
            "description": "Standard packaging unit.",
            "title": "Packages"
          },
          {
            "const": "bunch",
            "title": "Bunches"
          },
          {
            "const": "tetrabrik",
            "title": "Tetra-Briks"
          },
          {
            "const": "pallet",
            "title": "Pallets"
          },
          {
            "const": "reel",
            "title": "Reels"
          },
          {
            "const": "sack",
            "title": "Sacks"
          },
          {
            "const": "sheet",
            "title": "Sheets"
          },
          {
            "const": "envelope",
            "title": "Envelopes"
          },
          {
            "const": "lot",
            "title": "Lot"
          },
          {
            "const": "unit",
            "description": "A type of package composed of a single item or object, not otherwise specified as a unit of transport equipment.",
            "title": "Unit"
          },
          {
            "description": "UN/ECE Unit Code from Recommendation 20",
            "pattern": "^[A-Z0-9]{2,3}$"
          }
        ],
        "title": "Unit",
        "type": "string"
      }
    },
    "$id": "https://gobl.org/draft-0/org/unit",
    "$ref": "#/$defs/Unit",
    "$schema": "https://json-schema.org/draft/2020-12/schema"
  }