OpenAPITools / OpenAPITools/sbt-openapi-generator
Not generating anything but output success
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 43
- Forks
- 42
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 2
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with build.sbt and config.yml, then run sbt openApiGenerate from the project root and inspect the generated subproject configuration. Verify whether the command uses swagger.yaml and whether output is expected under generated; done means the configured OpenAPI generator produces files there without reporting a false success.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, scala
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100