-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Hi,
I'm trying to use sbt-openapi-generator
but unfortunately, it doesn't seems to work.
Here is the output in the command line. I receive a "success" but I can't find generated code anywhere. There is no error.
C:\dev\CS\CSBackEnd>sbt openApiGenerate
[info] welcome to sbt 1.3.13 (Oracle Corporation Java 1.8.0_201)
[info] loading global plugins from C:\Users\jcote\.sbt\1.0\plugins
[info] loading settings for project csbackend-build from plugins.sbt ...
[info] loading project definition from C:\dev\CS\CSBackEnd\project
[info] loading settings for project root from build.sbt ...
[info] set current project to S360ControlSite (in build file:/C:/dev/CS/CSBackEnd/)
[success] Total time: 0 s, completed Feb 9, 2021 9:05:55 AM
I followed the example pretty closely.
Here is my config.yml
generatorName: "java-play-framework"
outputDir : "generated"
additionalProperties:
hideGenerationTimestamp: "true"
booleanGetterPrefix: "is"
Here is the new part of the build.sbt
lazy val generated = project.in(file("generated"))
.settings(
openApiInputSpec := "swagger.yaml",
openApiConfigFile := "config.yml",
openApiValidateSpec := SettingEnabled,
openApiGenerateModelTests := SettingDisabled
)
All the files are at the root, there is only one module in my project... Am I missing something important?
Thanks
Metadata
Metadata
Assignees
Labels
No labels