When setting parameters in the tool to enumerated values, the final rendering is still an input box instead of a drop-down option. #12206

Closed
opened 2026-02-21 19:06:21 -05:00 by yindo · 1 comment
Owner

Originally created by @xuejieming on GitHub (Mar 27, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

https://cloud.dify.ai/

Cloud or Self Hosted

Cloud

Steps to reproduce

{
  "openapi": "3.0.3",
  "info": {
    "title": "Dify Custom Tool Example",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "http://console.xx.cn"
    }
  ],
  "paths": {
    "/demo": {
      "post": {
        "parameters": [
          {
            "in": "query",
            "name": "category",
            "required": true,
            "schema": {
              "type": "string",
              "enum": ["news", "tutorial", "analysis"],
              "x-enum-varnames": ["News", "Tutorial", "Analysis"],
              "example": "news" 
            },
            "style": "form", 
            "explode": false,
            "description": "Select content category (下拉选项)"
          }
        ],
        "requestBody": {
          "required": true, 
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["language"], 
                "properties": {
                  "language": {
                    "type": "string",
                    "enum": ["en", "zh", "es"],
                    "x-dify-ui": "select",
                    "x-enum-varnames": ["英文", "中文", "西班牙语"],
                    "example": "zh",
                    "description": "选择语言"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  }
}

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @xuejieming on GitHub (Mar 27, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version https://cloud.dify.ai/ ### Cloud or Self Hosted Cloud ### Steps to reproduce ``` { "openapi": "3.0.3", "info": { "title": "Dify Custom Tool Example", "version": "1.0.0" }, "servers": [ { "url": "http://console.xx.cn" } ], "paths": { "/demo": { "post": { "parameters": [ { "in": "query", "name": "category", "required": true, "schema": { "type": "string", "enum": ["news", "tutorial", "analysis"], "x-enum-varnames": ["News", "Tutorial", "Analysis"], "example": "news" }, "style": "form", "explode": false, "description": "Select content category (下拉选项)" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": ["language"], "properties": { "language": { "type": "string", "enum": ["en", "zh", "es"], "x-dify-ui": "select", "x-enum-varnames": ["英文", "中文", "西班牙语"], "example": "zh", "description": "选择语言" } } } } } }, "responses": { "200": { "description": "Success" } } } } } } ``` ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🔨 feat:toolscloud labels 2026-02-21 19:06:21 -05:00
yindo closed this issue 2026-02-21 19:06:21 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 27, 2025):

Hi, @xuejieming. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You reported a bug where parameters meant to be drop-downs are shown as input boxes.
  • This occurs even with enumerated values and "select" UI type specified.
  • The issue is specific to the cloud-hosted version of Dify.
  • No comments or updates have been made on this issue yet.

Next Steps:

  • Could you confirm if this issue is still relevant with the latest version of Dify? If so, please comment to keep the discussion open.
  • If there are no updates, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Apr 27, 2025): Hi, @xuejieming. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - You reported a bug where parameters meant to be drop-downs are shown as input boxes. - This occurs even with enumerated values and "select" UI type specified. - The issue is specific to the cloud-hosted version of Dify. - No comments or updates have been made on this issue yet. **Next Steps:** - Could you confirm if this issue is still relevant with the latest version of Dify? If so, please comment to keep the discussion open. - If there are no updates, this issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12206