From 5c873a0d2cac7017f149428da9f47c20218e989e Mon Sep 17 00:00:00 2001 From: Nyk <0xnykcd@googlemail.com> Date: Sat, 21 Mar 2026 22:35:41 +0700 Subject: [PATCH] fix(openapi): add GET /api/frameworks to spec Fixes API contract parity check in CI. --- openapi.json | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/openapi.json b/openapi.json index 4d302d6..13a0753 100644 --- a/openapi.json +++ b/openapi.json @@ -3601,6 +3601,57 @@ } } }, + "/api/frameworks": { + "get": { + "tags": [ + "Config" + ], + "summary": "List supported frameworks", + "description": "Returns all supported agent frameworks with connection info and optional templates.", + "operationId": "listFrameworks", + "parameters": [ + { + "name": "framework", + "in": "query", + "description": "Filter to a specific framework (e.g., langgraph)", + "schema": { "type": "string" } + }, + { + "name": "templates", + "in": "query", + "description": "Include available templates when set to 'true'", + "schema": { "type": "string", "enum": ["true", "false"] } + } + ], + "responses": { + "200": { + "description": "Framework list or single framework detail", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "frameworks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "name": { "type": "string" }, + "description": { "type": "string" } + } + } + }, + "framework": { "type": "object" }, + "templates": { "type": "array" } + } + } + } + } + } + } + } + }, "/api/gateways": { "get": { "tags": [