Skip to content

Not generating anything but output success #31

@JFCote

Description

@JFCote

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions