fern icon indicating copy to clipboard operation
fern copied to clipboard

Support audiences on OpenAPI webhooks

Open woodrow opened this issue 1 year ago • 1 comments

Which Fern component?

Fern Docs

How important is this?

P2 - Medium (Would be helpful)

What's the feature?

Currently OpenAPI endpoints marked with x-fern-webhook: true don’t respect x-fern-audiences and so they become hidden if you use audiences elsewhere in the same API.

This seems "intentional" in as much the OpenAPI intermediate representation for Webhook doesn't contain an audiences field, and there's no attempt to parse it either, and so I'm filing this as a feature request rather than a bug.

We can work around this with multiple APIs (and we may still do this anyway for other reasons) but it would be helpful to be able to do with one big api spec.

Any alternatives?

No response

Are you interested in contributing this feature?

Yes happy to help. I started to look at the code, but I couldn't figure out how to generate typescript code from the updated "IDL" (parseIr.yml, finalIr.yml, etc.)

woodrow avatar Mar 31 '25 19:03 woodrow

Resolved by #6690

woodrow avatar Apr 21 '25 16:04 woodrow