From 2ef7a3f05a394208de89a26e5a4c19ab9abf29f9 Mon Sep 17 00:00:00 2001 From: Martin Weiler Date: Mon, 25 Jul 2022 12:15:31 -0600 Subject: [PATCH] KOGITO-7453: Apply QE review changes --- .../main/java/org/kie/kogito/examples/PublishRestService.java | 2 +- .../src/main/resources/error.sw.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/kie/kogito/examples/PublishRestService.java b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/kie/kogito/examples/PublishRestService.java index 5f05c038ee..8b70de39f7 100644 --- a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/kie/kogito/examples/PublishRestService.java +++ b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/kie/kogito/examples/PublishRestService.java @@ -47,7 +47,7 @@ public Response publishEvenNumber(@PathParam("type") String type, @PathParam("nu logger.info("Publish type " + type + " number " + number); // check if the input number is even if (!"even".equals(type)) { - return Response.status(Status.BAD_REQUEST).entity(objectMapper.createObjectNode().put("error", "No perfect square for odd numbers")).build(); + return Response.status(Status.BAD_REQUEST).entity(objectMapper.createObjectNode().put("error", "Perfect square assessment not supported for odd numbers by this service")).build(); } return Response.ok().entity(objectMapper.createObjectNode().put("perfect", isPerfectSquare(number))).build(); } diff --git a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/error.sw.json b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/error.sw.json index a0f4686797..c6f8939b67 100644 --- a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/error.sw.json +++ b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/error.sw.json @@ -98,7 +98,7 @@ "arguments": { "type": "$.numberType", "number": "$.number" - } + } } } ],