Skip to content

Commit

Permalink
Merge pull request #19 from kailash/resp_format
Browse files Browse the repository at this point in the history
response format changes
  • Loading branch information
swaminathanvasanth authored Jan 11, 2022
2 parents ad4ca6a + 517dc45 commit b23a12e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import io.vertx.core.http.HttpServerRequest;
import io.vertx.core.http.HttpServerResponse;
import io.vertx.core.json.DecodeException;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.core.net.JksOptions;
import io.vertx.ext.web.Router;
Expand Down Expand Up @@ -445,7 +446,7 @@ private String generateResponse(HttpStatusCode statusCode, ResponseUrn urn, Json
return new JsonObject()
.put(JSON_TYPE, urn.getUrn())
.put(JSON_TITLE, statusCode.getDescription())
.put(JSON_RESULT, message)
.put(JSON_RESULT, new JsonArray().add(message))
.toString();
}

Expand Down

0 comments on commit b23a12e

Please sign in to comment.