micronaut-projects / micronaut-openapi

Generates OpenAPI / Swagger Documentation for Micronaut projects
https://micronaut-projects.github.io/micronaut-openapi/latest/guide/index.html
Apache License 2.0
80 stars 95 forks source link

Added support `additionalEnumTypeAnnotations`, `additionalModelTypeAnnotations`, `additionalOneOfTypeAnnotations` properties to generator. #1771

Closed altro3 closed 1 month ago

altro3 commented 2 months ago

Added ability to set additionalProperties by gradle / maven plugin

altro3 commented 2 months ago

@scprek this PR solve problem with new properties. After micronaut-openapi 6.12.4 we could set properties with block additionalProperties like this:

micronaut {
    openapi {
        client(file("swagger.yml")) {
            additionalProperties = [
                apiPackageName : "com.api.openapi.generated.api",
                useReactive : false,
                useAuth : true
            ]
        }
    }
}
scprek commented 1 month ago

IS this in ?

micronaut {
    openapi {
        version.set("6.12.4-SNAPSHOT")

and

micronautGradlePlugin=4.4.4-SNAPSHOT
altro3 commented 1 month ago

IS this in ?

micronaut {
    openapi {
        version.set("6.12.4-SNAPSHOT")

and

micronautGradlePlugin=4.4.4-SNAPSHOT

planned to release 6.12.4, but the team had a different vision. so the next release is 6.13.0

you will be able to set additionalProperties in the gradle only after merging this pull request: https://github.com/micronaut-projects/micronaut-gradle-plugin/pull/1034