Skip to content

readJSONSchemaInputs behaves incorrectly for anyOf #24

@bhavyakukkar

Description

@bhavyakukkar

For a tool with inputSchema as the following:

{
   "type" : "object",
   "properties" : {
      "a" : {
         "anyOf" : [ { "type" : "integer" }, { "type" : "number" } ],
         "title" : "A"
      },
      "b" : {
         "anyOf" : [ { "type" : "integer" }, { "type" : "number" } ],
         "title" : "B"
      }
   },
   "required" : [ "a", "b" ],
   "title" : "TwoNumbers"
}

readJSONSchemaInputs tries to get you to enter 4 different numbers:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions