Support audiences on OpenAPI webhooks
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.)
Resolved by #6690