Skip to content

Have spec file generation disabled when using server generation from spec file #1341

Description

@lucjross-favor

Feature description

I'm trying to configure a build according to this guide: https://guides.micronaut.io/latest/micronaut-openapi-generator-server-gradle-java.html

But the build still tries to generate a spec out of the swagger annotations on the generated interfaces, and by default uses that generated spec for the views (swagger-ui). This doesn't make sense and the generated spec also loses detail present in the original spec because the process of spec -> annotated interfaces -> new spec is imperfect.

I think when server generation is used, spec generation should be disabled by default.

Metadata

Metadata

Assignees

No one assigned

    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