Skip to content

Callback object example has excess key #1895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
agarb7 opened this issue Apr 16, 2019 · 1 comment
Closed

Callback object example has excess key #1895

agarb7 opened this issue Apr 16, 2019 · 1 comment

Comments

@agarb7
Copy link

agarb7 commented Apr 16, 2019

Callback object example has excess myWebhook key:

myWebhook:
  'http://notificationServer.com?transactionId={$request.body#/id}&email={$request.body#/email}':
    post:
      # ...

But specification say that callback object is map where each value is a Path Item Object. Thereby the example must be without extra level:

'http://notificationServer.com?transactionId={$request.body#/id}&email={$request.body#/email}':
  post:
    # ...
@handrews
Copy link
Member

It's actually correct, but it confused me as well (#3257). If you look under the Operation Object's fixed fields, the callbacks field is a map of Callback Objects, which are themselves maps of Path Item Objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants