{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/duck-hub-com/json-schema/duck-hub-com-v1-patch-product-dto-schema.json",
  "title": "V1PatchProductDto",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/duck-hub-com-openapi.json#/components/schemas/V1PatchProductDto",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1000
    },
    "priceMinor": {
      "type": "number",
      "minimum": 0,
      "maximum": 100000000
    },
    "salePriceMinor": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 100000000
    },
    "isSaleActive": {
      "type": "boolean"
    },
    "amount": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 100000
    },
    "unit": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "G",
        "PCS",
        "ML"
      ]
    },
    "badgeLabel": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 16
    },
    "badgeColor": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "RED",
        "PURPLE",
        "YELLOW",
        "GREEN",
        "BLUE",
        "GREY"
      ]
    },
    "categoryRef": {
      "type": [
        "string",
        "null"
      ],
      "description": "Hybrid category ref; null = detach from its category.",
      "maxLength": 255
    },
    "menuVisible": {
      "type": "boolean"
    },
    "sortOrder": {
      "type": "number",
      "minimum": -1000000000,
      "maximum": 1000000000
    }
  }
}