feat: add alpha, preview, and stable as availability options for x-fern-availability #11713
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Refs: User request to add
alpha,preview, andstableas availability options per industry standards.Adds
alpha,preview, andstableas new values for thex-fern-availabilityOpenAPI extension. These map to existing internal availability statuses:alpha→IN_DEVELOPMENTpreview→PRE_RELEASE(same asbeta)stable→GENERAL_AVAILABILITY(same asga)Link to Devin run: https://app.devin.ai/sessions/5732bfb11d0849959b0fcb3cc3abe788
Requested by: Niels Swimberghe (@Swimburger)
Changes Made
x-fern-availability.tsin v3-importer-commons to handlealpha,preview, andstablevaluesgetFernAvailability.tsin openapi-ir-parser to handlealpha,preview,stable, andin-developmentvaluesInDevelopmentto the openapi-irAvailabilityenum and regenerated the SDK/alpha-endpoint,/preview-endpoint,/stable-endpoint) to availability test fixturesTesting
pnpm run check)Review Checklist
alpha→IN_DEVELOPMENT,preview→PRE_RELEASE, andstable→GENERAL_AVAILABILITYaligns with expectationsopenapi/availability.jsonsnapshot), theanAlphaEndpointshows"availability": undefinedrather than"in-development". This appears to be a pre-existing limitation where that converter doesn't handleInDevelopment. The v3 importer path correctly shows"status": "IN_DEVELOPMENT".