Skip to content

Slimfaas-MCP: Parsing of simple input schemas does not yield the correct result #171

@FaresAh

Description

@FaresAh

When parsing a schema of the following form:

{
  "it": {
    "properties": {
      "question": {
        "description": "The user's question",
        "title": "Question",
        "type": "string"
      }
    },
    "required": [
      "question"
    ],
    "title": "it",
    "type": "object"
  }
}

The parsed result is of the form:

type: object
properties:
  body:
    type: string
    description: The user's question
    title: Question
required:
  - body

instead of

type: object
properties:
  body:
    type: object
    properties:
      question:
        type: string
        description: The user's question
        title: Question
    required:
      - question
required:
  - body

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions