Skip to content
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

chore: Fix Slack notification API docs #3485

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Aug 1, 2024

What does this PR do?

@@ -253,7 +244,7 @@ components:
type: string
description: A message returned to the client
paths:
/webhooks/hasura/sendSlackNotification:
/webhooks/hasura/send-slack-notification:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now matches the route -

router.post(
"/webhooks/hasura/send-slack-notification",
validate(sendSlackNotificationSchema),
sendSlackNotificationController,
);

@@ -66,53 +63,47 @@ components:
EmailSubmission:
type: object
properties:
body:
event:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously, these were incorrectly wrapped in body which means the example payload in the API docs are incorrect.

image

@DafyddLlyr DafyddLlyr requested a review from a team August 1, 2024 10:51
@DafyddLlyr DafyddLlyr marked this pull request as ready for review August 1, 2024 10:52
Copy link

github-actions bot commented Aug 1, 2024

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr merged commit 15962de into main Aug 1, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/slack-notification-api-docs branch August 1, 2024 11:18
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

Successfully merging this pull request may close these issues.

2 participants