-
Notifications
You must be signed in to change notification settings - Fork 6k
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
invalid enum generation on javascript-closure-angular-client and typescript-angular-client #2739
Comments
Tried a couple more unusual values (# and * as strings, that I actually need to use). These failed on all of them.
javascript client (made both the keys _)
closure angular
|
Novice: Our very small two cents ;-) We currently develop solutions in two worlds… LoopBack/Node.js & WebApi/Asp.net We would love to have a solution that complements each others interpretation of the concepts around
We currently use swagger to generate both client/server code for LoopBack & .NET, and client code in Java and PHP. When it comes to Enum and Additional Properties we have to deal with exceptions because like HTML specs each community is interpreting the specifications a little differently rather than each community discussing the discrepancy to improve the understanding and interpreting of the Swagger Specs. Here is Swagger API discussion around ENUMs for C-Sharp Here is StrongLooop / Loopback discussion around Enums Here is how AutoRest community is currently dealing with Enums with AutoRest
We still need to investigate where the StrongLoops/ IBM thoughts on implementing Enum, and we plan to review shortly. We just propose that all participants in providing a Swagger Code Generators to deal with Enum to converge on a solution rather than have a lot of silo implementations of swagger generic extensions for Enum. We have investigated the following code generators to date. Non have a consist implementation to deal with Additional Properties or Enum Appreciate feedback, concerns and issues with our thoughts… |
Using swagger editor 2.9.9 when I generate a closure angular or typescript angular enums are not properly defined when spaces appear in the string. They are normalized in the javascript client.
schema:
JAVASCRIPT CLIENT
JAVASCRIPT CLOSURE ANGULAR CLIENT
TYPESCRIPT ANGULAR CLIENT
The text was updated successfully, but these errors were encountered: