Forum Discussion

gvilleda's avatar
gvilleda
New Contributor
2 years ago
Solved

swaggerhub codegen aspnetcore pattern/minLength/maxLength not included in the generated code.

When generating the server code from SwaggerHub, some features are not available on the generated aspnetcore code. For example, I can add a pattern or minLength property and the spring generated code...
  • chichepo's avatar
    2 years ago

    Hi gvilleda 

    I defined some few properties with various definitions:

    Then I have generated an aspnetcore server stub:

    As you can see, the properties and their definitions are properly restitued in the Server code.
    I remember I had similar issues when I was using an old CodeGen version.
    My current version is 3.0.36.
    Which version are you using?