fix(mcp): detect unknown chart config fields and suggest correct ones (#38848)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kamil Gabryjelski
2026-03-25 18:38:23 +01:00
committed by GitHub
parent 04e07acf98
commit 16f5a2a41a
6 changed files with 266 additions and 61 deletions

View File

@@ -119,7 +119,7 @@ class TestHandlebarsChartConfig:
)
def test_extra_fields_forbidden(self) -> None:
with pytest.raises(ValueError, match="Extra inputs"):
with pytest.raises(ValueError, match="Unknown field 'unknown_field'"):
HandlebarsChartConfig(
chart_type="handlebars",
handlebars_template="<p>test</p>",