From 9a8513da1e328122068056cdc33639fd77a0696c Mon Sep 17 00:00:00 2001 From: Ricardo Zanini Date: Mon, 3 Jun 2024 11:54:03 -0300 Subject: [PATCH 1/2] Fix #878 - Fix URI format in workflow schema for endpoint attribute Signed-off-by: Ricardo Zanini --- schema/workflow.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/workflow.yaml b/schema/workflow.yaml index d98321f3..f8d9c90d 100644 --- a/schema/workflow.yaml +++ b/schema/workflow.yaml @@ -665,7 +665,7 @@ $defs: properties: uri: type: string - format: uri + format: uri-template description: The endpoint's URI. authentication: $ref: '#/$defs/authenticationPolicy' From 4284df7f866689612f4aa9250fca27bf48af0fd8 Mon Sep 17 00:00:00 2001 From: Ricardo Zanini Date: Mon, 3 Jun 2024 11:57:23 -0300 Subject: [PATCH 2/2] Add missing example to verify change Signed-off-by: Ricardo Zanini --- examples/bearer-auth-uri-format.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/bearer-auth-uri-format.yaml diff --git a/examples/bearer-auth-uri-format.yaml b/examples/bearer-auth-uri-format.yaml new file mode 100644 index 00000000..622aae2d --- /dev/null +++ b/examples/bearer-auth-uri-format.yaml @@ -0,0 +1,15 @@ +document: + dsl: 1.0.0-alpha1 + namespace: examples + name: bearer-auth-uri-format + version: 1.0.0-alpha1 +do: + getPetById: + call: http + with: + method: get + endpoint: + uri: https://petstore.swagger.io/v2/pet/1 + authentication: + bearer: + token: ${ .token }