Skip to content

[FERN-SCRIBE] Document Webhook support in openapi 3.1 #327

@Ryan-Amirthan

Description

@Ryan-Amirthan

📝 What do you want Fern Scribe (AI Technical Writer) to do?

Fern supports Webhooks as part of openapi 3.1, we need to document that.

🔗 Link to existing Slack thread

https://buildwithfern.slack.com/archives/C07EQ2VEFU5/p1748360947074069?thread_ts=1748360905.972659&cid=C07EQ2VEFU5

📋 Do you know of any documentation that needs to be updated?

https://buildwithfern.com/learn/openapi-definition/extensions/webhooks
https://buildwithfern.com/learn/docs/api-references/generate-webhook-reference

❌ If yes, describe why that documentation is incorrect

Current docs dont have documentation for openapi 3.1 where webhooks were introduced.

📰 Changelog Update Required

  • Yes, include changelog entry
  • No changelog needed

📎 Additional Context

we currently support the OpenAPI 3.1 webhooks! For example in the openapi you referenced. You can use it directly if you add an operationId to each webhook operation:
webhooks:

Each webhook needs a name

newPet:
# This is a Path Item Object, the only difference is that the request is initiated by the API provider
post:
operationId: newPetWebhook
requestBody:
description: Information about a new pet in the system
content:
application/json:
schema:
$ref: '#/components/schemas/Pet'
responses:
'200':
description: Return a 200 status to indicate that the data was received successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationfern-scribeTo trigger Fern Scribe (your AI Technical Writer)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions