jdk 1.8.*
Maven 3.4 or newer
# clone the repo:
git clone https://github.com/openvalidation/openvalidation-openapi.git
# switch to the checkout
cd openvalidation-openapi
# compile and test the sources
mvn clean package
Build the project via Maven
mvn clean install
or
mvn clean package
This project uses java.util.logging.Logger
for displaying runtime information.
Level.FINE
: Exception Stacktraces, Background Information for Exceptions in TestsLevel.SEVERE
: Parameter Informaton that caused exception, Exception Error Message
The project uses these guidelines for JavaDoc comments in source files.
We use the format-maven-plugin during build which makes use of google-java-format to enforce consisten formatting across the codebase.
To trigger autoformat manually run mvn com.coveo:fmt-maven-plugin:format
in the project root directory.
The Checkstyle Maven Plugin can be run via mvn checkstyle:check
.
It uses a modified google java style configuration.
- ov-java-spring-server
- ov-java-client
- ov-csharp-client
- ov-java-rules
# The following additional debug options are available for all codegen targets:
# -DdebugOpenAPI prints the OpenAPI Specification as interpreted by the codegen
# -DdebugModels prints models passed to the template engine
# -DdebugOperations prints operations passed to the template engine
# -DdebugSupportingFiles prints additional data passed to the template engine
java -DdebugOperations -cp /path/to/openapi-generator-cli.jar:/path/to/your.jar org.openapitools.codegen.OpenAPIGenerator generate -g my-codegen -i /path/to/openapi.yaml -o ./test
The above example will output the debug info for operations.
You can use this info in the api.mustache
file.