{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/barcodes-gg/main/json-schema/barcodes-gg-sku-barcode-schema.json",
  "title": "SkuBarcode",
  "description": "A barcode as returned by the lookup by style code.",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/barcodes-gg-openapi.json#/components/schemas/SkuBarcode",
  "type": "object",
  "properties": {
    "product_barcode_type": {
      "type": "string",
      "description": "GTIN12 or GTIN13."
    },
    "product_barcode_value": {
      "type": "string"
    },
    "product_size": {
      "$ref": "#/$defs/Size"
    },
    "isVerified": {
      "type": "boolean",
      "description": "False when the barcode was derived by the size-run algorithm instead of being observed."
    }
  },
  "$defs": {
    "Size": {
      "type": "object",
      "description": "Size of the item a barcode belongs to, per sizing region. Other regional keys (for example `us w`) can be present.",
      "properties": {
        "us": {
          "type": [
            "string",
            "number",
            "null"
          ]
        },
        "uk": {
          "type": [
            "string",
            "number",
            "null"
          ]
        },
        "eu": {
          "type": [
            "string",
            "number",
            "null"
          ]
        }
      },
      "additionalProperties": true
    }
  }
}