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 string enum value breaks the generator #33

Closed
czechboy0 opened this issue May 25, 2023 · 0 comments · Fixed by #59
Closed

Empty string enum value breaks the generator #33

czechboy0 opened this issue May 25, 2023 · 0 comments · Fixed by #59
Labels
area/generator Affects: plugin, CLI, config file. kind/bug Feature doesn't work as expected. size/S Small task. (A couple of hours of work.)

Comments

@czechboy0
Copy link
Contributor

We've seen a string enum definition like:

type: string
enum:
  - ""
  - foo
  - bar

Note the empty string as the first case.

Currently, the generator breaks on it, but we should be able to handle it. Somewhat related to #21.

@czechboy0 czechboy0 added area/generator Affects: plugin, CLI, config file. kind/bug Feature doesn't work as expected. size/S Small task. (A couple of hours of work.) labels May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/generator Affects: plugin, CLI, config file. kind/bug Feature doesn't work as expected. size/S Small task. (A couple of hours of work.)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant