{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/watermelon-sh/json-schema/watermelon-sh-product-list-schema.json",
  "title": "ProductList",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/studio-openapi.json#/components/schemas/ProductList",
  "type": "object",
  "required": [
    "count",
    "types",
    "products"
  ],
  "properties": {
    "count": {
      "type": "integer",
      "description": "Number of case studies returned."
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "The type filter that was applied, if any."
    },
    "types": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Every type available across all case studies."
    },
    "products": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Product"
      },
      "description": "The matching case studies."
    }
  },
  "$defs": {
    "Product": {
      "type": "object",
      "description": "Summary of one case study.",
      "required": [
        "slug",
        "name",
        "type",
        "industry",
        "year",
        "stack",
        "services",
        "summary",
        "url"
      ],
      "properties": {
        "slug": {
          "type": "string",
          "description": "Identifier used in URLs."
        },
        "name": {
          "type": "string",
          "description": "Product name."
        },
        "type": {
          "type": "string",
          "description": "Kind of product, such as Dashboard or Mobile App."
        },
        "industry": {
          "type": "string",
          "description": "Industry the product serves."
        },
        "year": {
          "type": "string",
          "description": "Year of the engagement."
        },
        "client": {
          "type": "string",
          "description": "Client the product was built for."
        },
        "stage": {
          "type": "string",
          "description": "Product stage during the engagement, such as MVP or Production."
        },
        "engagement": {
          "type": "string",
          "description": "Length and shape of the engagement."
        },
        "results": {
          "type": [
            "string",
            "null"
          ],
          "description": "Headline outcome, when one is published."
        },
        "website": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Live product URL, when public."
        },
        "stack": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Technologies used."
        },
        "services": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Services Watermelon Studio provided."
        },
        "summary": {
          "type": "string",
          "description": "One-paragraph description of the product."
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Case study page."
        },
        "markdownUrl": {
          "type": "string",
          "format": "uri",
          "description": "Markdown version of the case study page."
        }
      }
    }
  }
}