Forum Discussion
Apparently SwaggerHub accepts this pattern. I tried the same in reDocly - but here it does not work.
I was not aware about such issue on redocly. You are rigth it is, obviously, not supported.
SwaggerHub | Redocly |
|
Regarding the code generation, in my previous response, the code was generated correctly, but "description" or "example" are not "demonstrative" attributes when talking about codegen.
I'll try something like dealing with different patterns or types.
I'll let you know.
HenrikHL
I dug a little deeper in using allOf and the code generation.
Look at the 2 cases I tried.
Case #1:
Yaml definition | SwaggerHub Doc | C# code generated |
|
|
Case #2:
Yaml Definition | SwaggerHub Doc | C# code generated |
I am not sure if it is what you meant when you asked:
"Have you tried to generate code via the SwaggerHub page?"
I was expecting to get class model that support the whole properties list.
I am looking to hear, in this forum, some comments about this code.
Related Content
- 3 years ago
- 6 years ago
- 9 years ago
- 8 years ago
Recent Discussions
- 11 days ago
- 2 months ago