org.raml.model.Action Class has “setResponses(Map<String, org.raml.model.Response> responses)” method that takes a map of String as key and org.raml.model.Response as Value.
In my builder code i create a map as below
String status = "200"; responses.put(status, ramlResponse);
And write the raml into a file using below code
RamlEmitter re = new RamlEmitter(); String test = re.dump(raml);
The raml file entry looks like below , not sure why there is double quot around Status and how to remove it.
responses: "200": body: application/xml: schema: ResultSet