Description
In the camel-swagger-rest-dsl-generator project, it is not generating .type & .outType rest dsl though available as part of openapi 2.0 (swagger) spec.
This is because in (as far as I investigated) in org.apache.camel.generator.swagger.OperationVisitor class we have the following code and beyond we do not have options to emit type & outType. Besides in the method, it is also not possible to pass User defined objects which will help to create those models.
void visit(final HttpMethod method, final Operation operation) { if (filter.accept(operation.getOperationId())) { final String methodName = method.name().toLowerCase(); emitter.emit(methodName, path); emit("id", operation.getOperationId()); emit("description", operation.getDescription()); emit("consumes", operation.getConsumes()); emit("produces", operation.getProduces());
Attachments
Issue Links
- is duplicated by
-
CAMEL-19284 camel-restdsl-openapi-plugin - Add type and outType to Rest DSL
- Resolved