{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-product-schema.json",
  "title": "Product",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-products-api-openapi.yml#/components/schemas/Product",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "sku": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": "string"
    },
    "categoryId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "costPrice": {
      "type": [
        "string",
        "null"
      ],
      "description": "Unit cost in dollars. For a kit (isKit: true) this is calculated from its components and read-only: a value sent on create or update is ignored."
    },
    "sellPrice": {
      "type": [
        "string",
        "null"
      ],
      "description": "Unit sell price in dollars. For a kit (isKit: true) this is calculated from its components and read-only: a value sent on create or update is ignored."
    },
    "unit": {
      "type": [
        "string",
        "null"
      ]
    },
    "manufacturerId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "manufacturerCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "isKit": {
      "type": "boolean"
    },
    "isActive": {
      "type": "boolean"
    },
    "createdAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        }
      ]
    },
    "updatedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        }
      ]
    }
  },
  "required": [
    "id",
    "sku",
    "name",
    "description",
    "type",
    "categoryId",
    "costPrice",
    "sellPrice",
    "unit",
    "manufacturerId",
    "manufacturerCode",
    "isKit",
    "isActive",
    "createdAt",
    "updatedAt"
  ]
}