OpenAPITools / openapi-generator-bazel

Bazel plugin for OpenAPI Generator
Apache License 2.0
66 stars 46 forks source link

Need rule attribute to specify the output #26

Open TomTom876 opened 2 years ago

TomTom876 commented 2 years ago

The output of the bazel build goes to the bazel-bin/... dir by default. There should be an attribute to specify the generated code:

openapi_generator(
    name = "code-gen",
    generator = "spring",
    output = "generated",  # this should allow the user specify the output dir. 
...