diff --git a/CHANGELOG.md b/CHANGELOG.md index 8355aa28..f3e92481 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - fix: make sure $schema always added to LLM generated vega json object([#252](https://github.com/opensearch-project/dashboards-assistant/pull/252)) - feat: added a new visualization type visualization-nlq to support creating visualization from natural language([#264](https://github.com/opensearch-project/dashboards-assistant/pull/264)) - feat: exposed an API to check if a give agent config name has configured with agent id([#307](https://github.com/opensearch-project/dashboards-assistant/pull/307)) +- fix: make dataSourceId parameter optional for agent config_exist API ([#311](https://github.com/opensearch-project/dashboards-assistant/pull/311)) ### 📈 Features/Enhancements diff --git a/server/routes/agent_routes.ts b/server/routes/agent_routes.ts index 8fb7abd4..abbbd087 100644 --- a/server/routes/agent_routes.ts +++ b/server/routes/agent_routes.ts @@ -50,7 +50,7 @@ export function registerAgentRoutes(router: IRouter, assistantService: Assistant validate: { query: schema.oneOf([ schema.object({ - dataSourceId: schema.string(), + dataSourceId: schema.maybe(schema.string()), agentConfigName: schema.string(), }), ]),