In the screenshot I see that the microflow executes the mapping, assignes it to the HttpResponse, and returns that.
The alternative (that gives you a schema in swagger.json) is to have the microflow return the list of objects, and specify the export mapping in the REST operation.
For more information, see https://docs.mendix.com/refguide/published-rest-operation/#2172-export-mapping
Any progress on this? I have the same question.
When Studio Pro creates the swagger documentation it does not analyze the model’s microflows for what to expect. So operation microflows that return an HttpResponse object will have a default response documented in swagger.
The way to get more details about the respone in the swagger.json is to return an object or a list and specify a mapping based on a message definition.
Thanks for your answer.
So I have a message definition and a export_mapping object defined. The export mapping is using the message definition. The webservice is running perfect but the swagger response 200, 400, 500 example and model info stay empty (see below).
What am I missing?