{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/subotiz-com/json-schema/subotiz-com-product-schema.json",
  "title": "Product",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/subotiz-com-openapi.yml#/components/schemas/Product",
  "type": "object",
  "properties": {
    "product_id": {
      "type": "string",
      "description": "Product unique identifier on Subotiz"
    },
    "product_name": {
      "type": "string",
      "description": "Product name"
    },
    "product_status": {
      "type": "string",
      "description": "Product status"
    },
    "merchant_product_id": {
      "type": "string",
      "description": "Product ID"
    },
    "category_id": {
      "type": "string",
      "description": "Product type unique identifier on Subotiz"
    },
    "description": {
      "type": "string",
      "description": "Product description"
    },
    "image_url": {
      "type": "string",
      "description": "Product image URL"
    },
    "category_name": {
      "type": "string",
      "description": "Product type"
    },
    "created_by": {
      "type": "string",
      "description": "Product created by"
    },
    "created_at": {
      "type": "string",
      "description": "Product created at"
    },
    "features": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductFeature"
      },
      "description": "Product features"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A set of key-value pairs that can be attached to an object, allowing you to store additional information in a structured format."
    },
    "quantity_unit": {
      "type": "string",
      "description": "Quantity unit name (product-level, defaults to \"unit\")"
    }
  },
  "$defs": {
    "ProductFeature": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Product feature unique identifier on Subotiz"
        },
        "name": {
          "type": "string",
          "description": "Product feature name"
        },
        "type": {
          "type": "string",
          "description": "Product feature type\n - quantitative: Quantitative\n - qualitative: Qualitative"
        }
      }
    }
  }
}