Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum param support #11

Open
zoe-codez opened this issue Apr 28, 2024 · 1 comment
Open

Enum param support #11

zoe-codez opened this issue Apr 28, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@zoe-codez
Copy link
Member

Context

This field currently translates to a string

"get_forecasts": {
  "name": "Get forecasts",
  "description": "Get weather forecasts.",
  "fields": {
    "type": {
      "required": true,
      "selector": {
        "select": {
          "options": [
            "daily",
            "hourly",
            "twice_daily"
          ],
          "translation_key": "forecast_type"
        }
      },
      "name": "Forecast type",
      "description": "Forecast type: daily, hourly or twice daily."
    }
  },
}
@zoe-codez zoe-codez added enhancement New feature or request good first issue Good for newcomers labels Apr 28, 2024
@zoe-codez
Copy link
Member Author

Needs support for the multiple flag

"selector": {
  "select": {
    "translation_key": "status",
    "options": [
      "needs_action",
      "completed"
    ],
    "multiple": true
  }
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant