{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mareaalcalina-com/json-schema/mareaalcalina-com-product-manifest-patch-schema.json",
  "title": "ProductManifestPatch",
  "description": "PATCH body. Omitted fields are untouched. Sending `salePrice` alone is checked against the stored `price`.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mareaalcalina-com-openapi.json#/components/schemas/ProductManifestPatch",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "price": {
      "type": "number",
      "minimum": 0
    },
    "salePrice": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "category": {
      "type": [
        "string",
        "null"
      ]
    },
    "subcategory": {
      "type": [
        "string",
        "null"
      ]
    },
    "imageUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "thumbnailUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "sku": {
      "type": [
        "string",
        "null"
      ]
    },
    "slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "position": {
      "type": [
        "integer",
        "null"
      ]
    },
    "cartProduct": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "hide": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "stock": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "tags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "extraProductsCategory": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ExtraProductsCategory"
      }
    }
  },
  "$defs": {
    "ExtraProductOption": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "price": {
          "type": "number",
          "minimum": 0
        },
        "available": {
          "type": "boolean"
        },
        "stock": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "title",
        "price",
        "available"
      ]
    },
    "ExtraProductsCategory": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "obligatory": {
          "type": "boolean"
        },
        "multipleOption": {
          "type": "boolean"
        },
        "maxOptions": {
          "type": "integer"
        },
        "minOptions": {
          "type": "integer"
        },
        "extraProducts": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ExtraProductOption"
          }
        }
      },
      "required": [
        "title",
        "obligatory",
        "multipleOption",
        "maxOptions",
        "minOptions"
      ]
    }
  }
}