-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Currently we only generate constant values for enums from their content.
If you have quite long or awkward possible values like the terms of use URL of the setup-gradle action, the names are a bit unhandy.
Additionally, if you have an enum with values that calculate to the same name like
inputs:
some-enum:
type: enum
allowed-values:
- foo-bar
- foo_barwhich both evaluate to FooBar, you get a 500 internal server error as soon as you request the JAR, because a compile error will happen when trying to compile the bindings.
The latter could maybe also be solved by some logic to make the names unique,
but it could also be solved by this feature request which means, that you can give explicit names for enum values.
I think it makes sense to allow unnamed and named in the same element.
krzema12
Metadata
Metadata
Assignees
Labels
No labels