{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buyingmesh-com/json-schema/buyingmesh-com-product-schema.json",
  "title": "Product",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buyingmesh-com-openapi.yaml#/components/schemas/Product",
  "type": "object",
  "required": [
    "sku",
    "name",
    "material",
    "size",
    "moq",
    "minOrderQuantity",
    "price",
    "inventory",
    "leadTimeDays",
    "supplierQualifications",
    "dataFreshness"
  ],
  "properties": {
    "@context": {
      "type": "string",
      "const": "https://schema.org"
    },
    "@type": {
      "type": "string",
      "const": "Product"
    },
    "sku": {
      "type": "string"
    },
    "gtin": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "material": {
      "type": "string"
    },
    "size": {
      "type": "string"
    },
    "moq": {
      "type": "integer",
      "minimum": 100,
      "description": "Minimum order quantity in purchasable units"
    },
    "minOrderQuantity": {
      "type": "integer",
      "minimum": 100,
      "description": "Alias of moq"
    },
    "price": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string"
        }
      }
    },
    "inventory": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Null when the latest supplier snapshot has not confirmed stock"
    },
    "inventoryStatus": {
      "type": "string",
      "enum": [
        "confirmed",
        "unknown"
      ]
    },
    "leadTimeDays": {
      "type": "integer",
      "minimum": 0
    },
    "supplierQualifications": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dataFreshness": {
      "type": "string",
      "format": "date-time"
    },
    "isTestData": {
      "type": "boolean",
      "deprecated": true,
      "description": "Internal test-data marker. Public catalog responses only contain approved merchant records."
    },
    "dataEnvironment": {
      "type": "string",
      "enum": [
        "production"
      ]
    }
  }
}