Skip to content

Commit ed50ea3

Browse files
author
Chris Wiechmann
authored
Update README.md
1 parent d893b27 commit ed50ea3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import com.vordel.trace.Trace
2323
2424
def invoke(msg)
2525
{
26+
def apiId = msg.get("api.id");
2627
def validator = OpenAPIValidator.getInstance(apiId, "apiadmin", "changeme");
2728
def payload = bodyAsString(msg.get("content.body"));
2829
def path = msg.get("api.method.path");
@@ -63,6 +64,7 @@ def invoke(msg)
6364
// Read OpenAPI-Spec from an attribute
6465
// String swagger = msg.get('var.swagger')
6566
// def validator = OpenAPIValidator.getInstance(swagger);
67+
def apiId = msg.get("api.id");
6668
def validator = OpenAPIValidator.getInstance(apiId, "apiadmin", "changeme");
6769
def payload = bodyAsString(msg.get('content.body'));
6870
def path = msg.get("api.method.path");

0 commit comments

Comments
 (0)