diff --git a/src/main/java/com/uid2/core/vertx/CoreVerticle.java b/src/main/java/com/uid2/core/vertx/CoreVerticle.java index 5048558..530e388 100644 --- a/src/main/java/com/uid2/core/vertx/CoreVerticle.java +++ b/src/main/java/com/uid2/core/vertx/CoreVerticle.java @@ -621,7 +621,7 @@ void handleCloudEncryptionKeysRetrieval(RoutingContext rc) { } JsonObject response = new JsonObject() - .put("cloudEncryptionKeys", new JsonArray(cloudEncryptionKeys)); + .put("cloud_encryption_keys", new JsonArray(cloudEncryptionKeys)); rc.response().putHeader(HttpHeaders.CONTENT_TYPE, "application/json") .end(response.encode()); diff --git a/src/test/java/com/uid2/core/vertx/TestCoreVerticle.java b/src/test/java/com/uid2/core/vertx/TestCoreVerticle.java index dc271e9..7821013 100644 --- a/src/test/java/com/uid2/core/vertx/TestCoreVerticle.java +++ b/src/test/java/com/uid2/core/vertx/TestCoreVerticle.java @@ -673,7 +673,7 @@ void cloudEncryptionKeyRetrieveSuccess(Vertx vertx, VertxTestContext testContext assertEquals(200, response.statusCode()); JsonObject json = response.bodyAsJsonObject(); - JsonArray cloudEncryptionKeysArray = json.getJsonArray("cloudEncryptionKeys"); + JsonArray cloudEncryptionKeysArray = json.getJsonArray("cloud_encryption_keys"); assertNotNull(cloudEncryptionKeysArray); assertEquals(1, cloudEncryptionKeysArray.size()); @@ -721,7 +721,7 @@ void cloudEncryptionKeyRetrieveSuccessWithThreeKeys(Vertx vertx, VertxTestContex assertEquals(200, response.statusCode()); JsonObject json = response.bodyAsJsonObject(); - JsonArray cloudEncryptionKeysArray = json.getJsonArray("cloudEncryptionKeys"); + JsonArray cloudEncryptionKeysArray = json.getJsonArray("cloud_encryption_keys"); assertNotNull(cloudEncryptionKeysArray); assertEquals(3, cloudEncryptionKeysArray.size());