{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reddit/json-schema/reddit-components-schema-product-set-schema.json",
  "title": "Product Set",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reddit-product-catalogs-api-openapi.yml#/components/schemas/components_schema_product_set",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "The product set ID.",
      "readOnly": true
    },
    "catalog_id": {
      "type": "string",
      "description": "The product catalog ID.",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "The product set's name.",
      "minLength": 1,
      "maxLength": 100
    },
    "filter": {
      "type": "string",
      "description": "The filter rule that defines the set of products in the catalog. [Learn about filter rules](https://ads-api.reddit.com/docs/v3/filter-products)."
    },
    "summary": {
      "description": "How many products are in the set and any issues affecting them.",
      "type": [
        "object"
      ],
      "additionalProperties": false,
      "readOnly": true,
      "properties": {
        "products_count": {
          "type": [
            "integer"
          ],
          "description": "How many products are in the product set.",
          "minimum": 0,
          "readOnly": true
        },
        "approved_products_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "How many products are approved.",
          "minimum": 0,
          "readOnly": true
        },
        "rejected_products_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "How many products are rejected.",
          "minimum": 0,
          "readOnly": true
        },
        "issues": {
          "type": [
            "object",
            "null"
          ],
          "description": "A map of issues categorized by severity.",
          "readOnly": true,
          "additionalProperties": false,
          "properties": {
            "critical": {
              "type": [
                "object",
                "null"
              ],
              "description": "Critical issues and how many products are affected.",
              "readOnly": true,
              "additionalProperties": {
                "type": "integer",
                "minimum": 0
              }
            },
            "warning": {
              "type": [
                "object",
                "null"
              ],
              "description": "Warning issues and how many products are affected.",
              "readOnly": true,
              "additionalProperties": {
                "type": "integer",
                "minimum": 0
              }
            }
          }
        },
        "invalid_products_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The number of products with at least 1 critical issue. Products with critical issues are not submitted for review.",
          "minimum": 0,
          "readOnly": true
        }
      }
    },
    "created_at": {
      "$ref": "#/$defs/components_schema_created_at"
    },
    "modified_at": {
      "$ref": "#/$defs/components_schema_modified_at"
    }
  },
  "$defs": {
    "components_schema_created_at": {
      "description": "When this entity was created ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "components_schema_modified_at": {
      "title": "Modified At",
      "description": "When this entity was last changed ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  }
}