Details
Description
If camel-restdsl-openapi-plugin is used to generate DTOs, it would be nice to have type(..) and outType(..) set on the Rest DSL.
ex.
rest("/v2") .put("/pet") .id("updatePet") .consumes("application/json,application/xml") .produces("application/xml,application/json") _.type(Pet.class)_ .param() .name("body") .type(RestParamType.body) .required(true) .description("Pet object that needs to be added to the store") .endParam() .to("direct:updatePet")
given
... "/pet": { "put": { "requestBody": { "description": "Pet object that needs to be added to the store", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Pet" } }, ...
Attachments
Issue Links
- duplicates
-
CAMEL-13909 Camel Rest-DSL doesn't generate type & outType from openapi 2.0 file
- Resolved