{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curbwaste/json-schema/curbwaste-create-public-customer-pricelist-dto-schema.json",
  "title": "CreatePublicCustomerPricelistDto",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curbwaste-catalog-api-openapi.yml#/components/schemas/CreatePublicCustomerPricelistDto",
  "type": "object",
  "properties": {
    "sourcePriceListId": {
      "type": "string",
      "format": "uuid"
    },
    "customerId": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "includeAll": {
      "type": "boolean",
      "title": "Set true to clone every SKU. When omitted or false, skuSelections is required",
      "description": "Set true to clone every SKU. When omitted or false, skuSelections is required."
    },
    "skuSelections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicSkuSelection"
      },
      "title": "Required when includeAll is not true",
      "description": "Required when includeAll is not true."
    },
    "chargeRemovals": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    }
  },
  "required": [
    "sourcePriceListId",
    "customerId",
    "name"
  ],
  "$defs": {
    "PublicSkuSelection": {
      "type": "object",
      "properties": {
        "skuId": {
          "type": "string",
          "format": "uuid"
        },
        "price": {
          "type": "number",
          "minimum": 0
        }
      },
      "required": [
        "skuId",
        "price"
      ]
    }
  }
}