mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
ecf924e78f
* Adds Valid annotation for request body (#4847) If useBeanValidation is active, this change will add Valid annotation to ReqeustBody * Adds generated samples for bean vaildation in spring boot (#4847) * Adds feature option (#3819) When you enable the feature useOptional the JavaSpring generator will use type Optional for non required parameters. * Adds generated sample for #3819 * Adds generated sample for #3819 * Reverts commit for bean validation * Adds generated sample for #3819 * Reverts commit for bean validation * Fix alignment * update spring samples * update pom.xml to include spring use optional samples * update artifactId to "spring-boot-beanvalidation" * rpelace tab with 4-space * check mvn task result |
||
---|---|---|
.. | ||
.swagger-codegen | ||
src/main | ||
.swagger-codegen-ignore | ||
pom.xml | ||
README.md |
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