Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not generating OAS 3 annotations #206

Open
schrek1 opened this issue Jul 14, 2020 · 3 comments
Open

Not generating OAS 3 annotations #206

schrek1 opened this issue Jul 14, 2020 · 3 comments
Labels

Comments

@schrek1
Copy link

schrek1 commented Jul 14, 2020

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 schrek1 added the bug label Jul 14, 2020
@davidvuletas
Copy link

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

@davidvuletas
Copy link

Or @schrek1 did you manage to solve this ?

@shiec
Copy link

shiec commented Feb 2, 2024

And update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants