gradle-swagger-generator-plugin icon indicating copy to clipboard operation
gradle-swagger-generator-plugin copied to clipboard

Not generating OAS 3 annotations

Open schrek1 opened this issue 4 years ago • 3 comments

This code not generating OAS 3 annotation. It still use old annotations, I'm not able forced using OAS 3 annotations on generated code :(

plugins {
    id 'org.hidetake.swagger.generator' version "2.18.2"
}

swaggerSources {
    platformapi {
        inputFile = file('../swagger/platform/pgw-platform-api.yml')
        code {
            language = 'spring'
            outputDir = file("$buildDir/generated-sources/")
            wipeOutputDir = false
            additionalProperties = [
                    'interfaceOnly': true,
                    'dateLibrary'  : 'java11',
                    'useTags'      : true
            ]
            components = ['models', 'apis']
            configFile = file('../swagger/platform/swagger-config.json')
        }
    }
}

dependencies {
    swaggerCodegen 'io.swagger.codegen.v3:swagger-codegen-cli:3.0.20'
}

compileJava {
    dependsOn swaggerSources.platformapi.code
}

schrek1 avatar Jul 14 '20 11:07 schrek1

Hello guys, any update on this ? :) I'm having same issue

davidvuletas avatar May 14 '21 13:05 davidvuletas

Or @schrek1 did you manage to solve this ?

davidvuletas avatar May 14 '21 13:05 davidvuletas

And update on this?

shiec avatar Feb 02 '24 15:02 shiec