Skip to content

Nullable bool parameter generate wrong inputSchema #815

@nliu-ms

Description

@nliu-ms

Describe the bug
When I define a nullable bool parameter like:
Image

The generate inputSchema is not correct:

Image

To Reproduce
Steps to reproduce the behavior:
1.

Expected behavior
The expected input schema should have type "boolean" instead of an array with both "boolean" and "null". The opitonal parameter should not in "required" section.

          "inputSchema": {
              "type": "object",
              "properties": {
                "state": {
                  "description": "The US state to get alerts for. Use the 2 letter abbreviation for the state (e.g. NY).",
                  "type": "string"
                },
                "includeHurricane": {
                  "description": "Should the alert including hurricane",
                  "type":  "boolean"
                }
              },
              "required": [
                "state",
              ]
            },

Logs
If applicable, add logs to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions