{
  "openapi": "3.0.3",
  "info": {
    "title": "BuildWhatSells public catalog",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "/"
    }
  ],
  "paths": {
    "/catalog.json": {
      "get": {
        "operationId": "listPublishedProducts",
        "responses": {
          "200": {
            "description": "Published catalog. The static demo returns an empty list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "source",
                    "products"
                  ],
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "published products"
                      ]
                    },
                    "products": {
                      "type": "array",
                      "maxItems": 0,
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
