You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enumclassExampleEnum {
`five-minutes`,
FIVE_MINUTES, // This is the only one that ends up in the spec
`5m`,
}
This is valid Kotlin code and the OpenAPI spec also doesn't prevent us from setting enum values like five-minutes and 5m. However, the library converts it into the following in the spec:
Use the ExampleEnum mentioned above with this library
Use it in any property by doing something like val exampleProperty: List<ExampleEnum>
Notice that the generated spec misses most of the enum values
Additional context
We're on the latest version (5.6.2-1) of this library.
Please let me know if I can provide more details or examples. Happy to provide a fix if you could point me at the place where I should be looking in the library. Thank you!
The text was updated successfully, but these errors were encountered:
I didn't even know I can use such names for enum values. I think it could be Kotlin-only feature that is simply invisible for the Java annotation processor 🤔 This is the code we use for that:
Actual behavior (the bug)
Consider the following enum (Kotlin):
This is valid Kotlin code and the OpenAPI spec also doesn't prevent us from setting enum values like
five-minutes
and5m
. However, the library converts it into the following in the spec:Expected behavior
We would expect the generated spec to look like this instead:
To Reproduce
ExampleEnum
mentioned above with this libraryval exampleProperty: List<ExampleEnum>
Additional context
We're on the latest version (5.6.2-1) of this library.
Please let me know if I can provide more details or examples. Happy to provide a fix if you could point me at the place where I should be looking in the library. Thank you!
The text was updated successfully, but these errors were encountered: