mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-01-09 15:38:08 -05:00
fix: Correct the capitalization of map manifests (#1139)
Manifests field keys should start with lower case
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user