Karen Lease created CAMEL-19818:
-----------------------------------

             Summary: 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


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