Closed dennisameling closed 1 year ago
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:
Yup, it won't work. This value simply does not exist as a constant value in the compiled enum, so it's beyond our scope.
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!