[ 
https://issues.apache.org/jira/browse/CAMEL-19818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karen Lease resolved CAMEL-19818.
---------------------------------
    Resolution: Fixed

> camel-openapi-java - A response type containing an array generates incorrect 
> schema reference
> ---------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-19818
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19818
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-openapi-java
>    Affects Versions: 4.0.0
>            Reporter: Karen Lease
>            Assignee: Karen Lease
>            Priority: Minor
>             Fix For: 4.0.1, 4.1.0
>
>
> When the Camel rest DSL contains the following 
> {code:java}
> .get("/findAll").description("Find all users").outType(User[].class)
> {code}
> the generated OpenAPI contains a schema reference containing the fully 
> qualified type name instead of the class name (Users), as shown here:
> {code:java}
> "schema":{
>  "type":"array",
>  "items":{"$ref":"#/components/schemas/org.apache.camel.openapi.User"}
>  }
> {code}
> This only occurs when outType is an array.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to