Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants