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

Empty value for choice option shows "Unexpected value" error #395

Open
ThiefMaster opened this issue Sep 24, 2024 · 0 comments
Open

Empty value for choice option shows "Unexpected value" error #395

ThiefMaster opened this issue Sep 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ThiefMaster
Copy link

on:
  # ...
  workflow_dispatch:
    inputs:
      plugin-name:
        description: Specific plugin to build
        type: choice
        options:
          - ''
          - foo
          - bar

This shows Unexpected value '' on the '``' line. But it's perfectly valid and unfortunately the only way to really make an optional choice field where one can decide to not select anything (and not get anything preselected). Likewise, it's the only way to make a required choice field where one is forced to actually make a choice and not just have the first option preselected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog 🗒
Development

No branches or pull requests

1 participant