Skip to content

Is description supported when importing event types from an OpenAPI document? #1265

Answered by mderriey
mderriey asked this question in Q&A
Discussion options

You must be logged in to vote

Summary that I'll mark as an answer for future peeps who stumble here.

The event type description is sourced from the description field defined under "post", e.g.

{
  "openapi": "3.1.0",
  "info": {
    "title": "Webhooks",
    "version": "1.0.0"
  },
  "webhooks": {
    "RedactedEventType": {
      "post": {
+       "description": "This will be the event type description.",
        "requestBody": {
          // rest omitted for brevity
        }
      }
    }
  }
}

If you're using the provided Postman collection and your event types aren't updated, make sure to disable the idempotency-key header in the request (and all other POST requests)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@svix-lucho
Comment options

@mderriey
Comment options

@mderriey
Comment options

Answer selected by mderriey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants