Skip to content

[Go] Panic when parsing jsonschema #3664

@malyusha

Description

@malyusha

My MCP external server (python fast mcp) has a tool with the following JSON input schema:

{
      "properties" : {
        "query" : {
          "title" : "Query",
          "type" : "string"
        },
        "domain" : {
          "anyOf" : [ {
            "type" : "string"
          }, {
            "type" : "null"
          } ],
          "default" : null,
          "title" : "Domain"
        }
      },
      "required" : [ "query" ],
      "title" : "get_coding_contextArguments",
      "type" : "object"
    }

There's a panic at plugins/googlegenai/gemini.go#464 when it tries to read non-existing property type.
The thing is - there's no type for domain property (in my case).

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggo

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions