Skip to content

Commit

Permalink
Fixed modsecurity base test
Browse files Browse the repository at this point in the history
  • Loading branch information
cognitivegears committed Dec 26, 2024
1 parent d530e9c commit 7dbabe5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ logs/
.Trashes
ehthumbs.db
Thumbs.db

output/
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ public void launchCodeGenerator() {
// https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java
final CodegenConfigurator configurator = new CodegenConfigurator()
.setGeneratorName("modsecurity3") // use this codegen library
.setInputSpec("../../../modules/openapi-generator/src/test/resources/2_0/petstore.yaml") // sample OpenAPI file
// .setInputSpec("https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml") // or from the server
.setOutputDir("out/modsecurity3"); // output directory
//.setInputSpec("../../../../../../samples/petstore.yaml") // sample OpenAPI file
//.setInputSpec("https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml") // or from the server
.setInputSpec("samples/petstore.yaml")
.setOutputDir("output/modsecurity3"); // output directory

final ClientOptInput clientOptInput = configurator.toClientOptInput();
DefaultGenerator generator = new DefaultGenerator();
Expand Down

0 comments on commit 7dbabe5

Please sign in to comment.