Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.0.0
-
None
-
Unknown
Description
When the Camel rest DSL contains the following
.get("/findAll").description("Find all users").outType(User[].class)
the generated OpenAPI contains a schema reference containing the fully qualified type name instead of the class name (Users), as shown here:
"schema":{ "type":"array", "items":{"$ref":"#/components/schemas/org.apache.camel.openapi.User"} }
This only occurs when outType is an array.
Attachments
Issue Links
- Discovered while testing
-
CAMEL-19793 camel-springdoc-starter contains old (javax) dependencies
- Resolved