-
Notifications
You must be signed in to change notification settings - Fork 198
Removing naming strategy when documenting enum values #171
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
Removing naming strategy when documenting enum values #171
Conversation
|
No, I don't think it is. The current main branch still accepts a NamingStrategy parameter, which is hard-coded to Camel Case. Check out https://github.com/healthfitnessnordic/azure-functions-openapi-extension/commits/feature/enum-names which I mentioned in my issue - it is based on main (including #159), and has the problem I describe. |
|
In |
|
I am aware of that. Problem is, the naming strategy is hard coded to be Camel Case further up type chain, so it doesn’t matter what the default is. If you have a look at the example I referenced, you will see how this looks in a real life scenario. This is actually a very good example of when unit tests aren’t enough. |
|
In the PR I mentioned, the call of the method does not contain a NamingStrategy: line chaned I had the exact same problem. Using the code from the PR, I no longer have the problem. But please note it has not yet been released; verion |
|
I’ll test when I’m back at a computer. As I’ve said a couple of times, current main branch still has the issue. |
|
Had a thought: could it be that the previous PR only fixes inbound enums (eg as part of a POST/PUT payload) while mine fixes enums as part of a return payload? |
|
🤔 perhaps; will test in a minute |
6bdae20 to
e56f988
Compare
|
You are absolutely right. It already works. Closing :-) |

See #170
The current implementation, which changes the casing of enum values, is confusing our API clients.