fern-api / fern

Input OpenAPI. Output SDKs and Docs.
https://buildwithfern.com
MIT License
2.45k stars 118 forks source link

(feature, openapi): Add better support for OpenAPI webhooks #3846

Closed amckinney closed 3 weeks ago

amckinney commented 3 weeks ago

This adds a couple new features to OpenAPI webhooks, including:

  1. Webhook examples are now supported (and rendered in the docs).
  2. The webhooks key introduced in OpenAPI v3.1 is now supported.

This also fixes a related issue in the OpenAPI parser, where an array of examples was mistakenly formatted as a map, with integer keys (e.g .'0', '1', etc).