fix: Correct the capitalization of map manifests (#1139)

Manifests field keys should start with lower case
This commit is contained in:
Wenxin Du
2025-08-13 18:37:41 -04:00
committed by GitHub
parent efa2a71b6d
commit 0b0457c8e6
2 changed files with 6 additions and 6 deletions

View File

@@ -419,7 +419,7 @@ type ParameterManifest struct {
Description string `json:"description"`
AuthServices []string `json:"authSources"`
Items *ParameterManifest `json:"items,omitempty"`
AdditionalProperties any `json:"AdditionalProperties,omitempty"`
AdditionalProperties any `json:"additionalProperties,omitempty"`
}
// ParameterMcpManifest represents properties when served as part of a ToolMcpManifest.
@@ -427,7 +427,7 @@ type ParameterMcpManifest struct {
Type string `json:"type"`
Description string `json:"description"`
Items *ParameterMcpManifest `json:"items,omitempty"`
AdditionalProperties any `json:"AdditionalProperties,omitempty"`
AdditionalProperties any `json:"additionalProperties,omitempty"`
}
// CommonParameter are default fields that are emebdding in most Parameter implementations. Embedding this stuct will give the object Name() and Type() functions.

View File

@@ -304,7 +304,7 @@ func TestLooker(t *testing.T) {
"type": "array",
},
map[string]any{
"AdditionalProperties": true,
"additionalProperties": true,
"authSources": []any{},
"description": "The filters for the query",
"name": "filters",
@@ -392,7 +392,7 @@ func TestLooker(t *testing.T) {
"type": "array",
},
map[string]any{
"AdditionalProperties": true,
"additionalProperties": true,
"authSources": []any{},
"description": "The filters for the query",
"name": "filters",
@@ -480,7 +480,7 @@ func TestLooker(t *testing.T) {
"type": "array",
},
map[string]any{
"AdditionalProperties": true,
"additionalProperties": true,
"authSources": []any{},
"description": "The filters for the query",
"name": "filters",
@@ -530,7 +530,7 @@ func TestLooker(t *testing.T) {
"type": "string",
},
map[string]any{
"AdditionalProperties": true,
"additionalProperties": true,
"authSources": []any{},
"description": "The visualization config for the query",
"name": "vis_config",