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

Add --use-oas2 command line argument support for standalone Swagger Codegen CLI #744

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

reta
Copy link
Contributor

@reta reta commented Aug 26, 2020

In the scope of #101, it turned out that Swagger Codegen CLI does not support --use-oas2 command line argument (to generate server stubs using OAS 2.x specification), which this pull request aims to fix.

I have checked the usage of for --use-oas2 for:

[ x ] jaxrs-spec
[ x ] jaxrs-cxf
[ x ] jaxrs-resteasy-eap
[ x ] jaxrs-resteasy
[ x ] jaxrs-jersey
[ x ] jaxrs-cxf-cdi
[ x ] jaxrs-di

Sample command line:

java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate     
    -l jaxrs-jersey    
    -i https://petstore.swagger.io/v2/swagger.json     
    -o samples    
    --use-oas2

@HugoMario please mind taking a look, thanks!

@HugoMario
Copy link
Contributor

looks good to me, thanks @reta

@HugoMario HugoMario merged commit b57f523 into swagger-api:master Aug 27, 2020
@reta
Copy link
Contributor Author

reta commented Aug 27, 2020

Thanks a lot, @HugoMario !

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

Successfully merging this pull request may close these issues.

None yet

2 participants