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

The templates for openApi3 for jaxrs-spec contain imports that are from swagger 2 lib #843

Open
RedRecker opened this issue Jan 13, 2021 · 0 comments

Comments

@RedRecker
Copy link

The pojo.mustache for JavaJaxRS/spec (https://github.com/swagger-api/swagger-codegen-generators/blob/master/src/main/resources/handlebars/JavaJaxRS/spec/pojo.mustache#L1) contains

import io.swagger.annotations.*;

Shouldn’t this be:

{{#useOas2}} 
import io.swagger.annotations.*; 
{{/useOas2}} 
{{^useOas2}} 
import io.swagger.v3.oas.annotations.Operation; 
import io.swagger.v3.oas.annotations.Parameter; 
import io.swagger.v3.oas.annotations.responses.ApiResponses; 
import io.swagger.v3.oas.annotations.responses.ApiResponse; 
import io.swagger.v3.oas.annotations.media.ArraySchema; 
import io.swagger.v3.oas.annotations.media.Content; 
import io.swagger.v3.oas.annotations.media.Schema; 
import io.swagger.v3.oas.annotations.security.SecurityRequirement; 
{{/useOas2}} 
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

No branches or pull requests

1 participant