Skip to content

Commit 0a5b58e

Browse files
committed
Fix callback-example.yaml
The runtime expression [must be quoted](http://www.yaml.org/spec/1.2/spec.html#id2788859) as it starts with a '{' - an [indicator character](http://www.yaml.org/spec/1.2/spec.html#c-indicator) Also added 'openapi' and 'info' properties because they are required and, thus, the spec file is invalid without them.
1 parent 9c08338 commit 0a5b58e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/v3.0/callback-example.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
openapi: 3.0.0
2+
info:
3+
title: Callback Example
4+
version: 1.0.0
15
paths:
26
/streams:
37
post:
@@ -32,7 +36,7 @@ paths:
3236
onData:
3337
# when data is sent, it will be sent to the `callbackUrl` provided
3438
# when making the subscription PLUS the suffix `/data`
35-
{$request.query.callbackUrl}/data:
39+
'{$request.query.callbackUrl}/data':
3640
post:
3741
requestBody:
3842
description: subscription payload

0 commit comments

Comments
 (0)