mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-31 22:10:51 +00:00
Commit e3d04ee01 (issue #5240) introduced unsafe add/put methods for optional list/map parameters. This change maintains the spirit of issue #5240 (optional containers are null by default) while still making add/put calls safe. It does this by checking for null first and, if so, initializing it with an empty container. Also updated the affected samples using the various scripts in bin/.
Swagger generated server
Spring MVC Server
Overview
This server was generated by the swagger-codegen project. By using the OpenAPI-Spec, you can easily generate a server stub. This is an example of building a swagger-enabled server in Java using the Spring MVC framework.
The underlying library integrating swagger to Spring-MVC is springfox
You can view the server in swagger-ui by pointing to http://localhost:8002/v2/swagger-ui.html