Is it possible and if yes, how to set the Example Value for Swagger UI using Camel REST DSL in Java?
I'm running Swagger UI from org.webjars dependency in Spring Boot.
rest("/test").description("Some description").consumes("application/json").produces("application/json")
.post("/trigger").id("trigger")
.description("Another description")
.type(Map.class).param().name("body").type(body).description("More description"))
.required(true).example(readJson.getJson("json_example.txt")).endParam()
.route().bean(new Service(), "Trigger");
This readJson get JSON as String.
It looks like .example() is ignored and nothing appears in Swagger UI.
It always shows the "string" value inside Example Value like on the picture below.


