You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
results in generated code with openapi spec v2 annotations.
i.e. samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java:
@io.swagger.annotations.Api(description = "the another-fake API")
according to the openapi spec v3 it should result in:
@io.swagger.v3.oas.annotations.OpenAPIDefinition(info = @Info(title= "OpenAPI Petstore", description = "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "
\", version = "1.0.0"))
if generating the html-documentation, the resulting yaml doesn't include all the information which was originally specified in the input yaml file.
openapi-generator version
openapi-generator version 3.3.4
OpenAPI declaration file content or url
from file: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml:
openapi: 3.0.0info:
description: >- This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: " \version: 1.0.0title: OpenAPI Petstore
Steps to reproduce
generate the JavaJaxRS sample
Suggest a fix
one of:
detection of input spec openapi version
change the default behavior of -g jaxrs-jersey to generate openapi v3 annotations
add a new language, i.e. -g jaxrs-jersey-v3
add a specific java related option like openAPIAnnotations=v3
The text was updated successfully, but these errors were encountered:
Description
usage of the generator with:
results in generated code with openapi spec v2 annotations.
i.e. samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java:
according to the openapi spec v3 it should result in:
if generating the html-documentation, the resulting yaml doesn't include all the information which was originally specified in the input yaml file.
openapi-generator version
openapi-generator version 3.3.4
OpenAPI declaration file content or url
from file: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml:
Steps to reproduce
generate the JavaJaxRS sample
Suggest a fix
one of:
-g jaxrs-jersey
to generate openapi v3 annotations-g jaxrs-jersey-v3
openAPIAnnotations=v3
The text was updated successfully, but these errors were encountered: