OpenAPI 3.3 Proposal: API-Level Deprecation & Sunset Support #5193
miqui
started this conversation in
Enhancements
Replies: 1 comment
-
|
Hi friends, just a draft for now. Thoughts? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Statement
Currently, OpenAPI only supports deprecation at the operation level via the deprecated: boolean field on Operation Objects. There is no standard way to signal that an entire API is being deprecated or sunset.
This forces API providers to:
Proposed Solution
Add formal lifecycle management fields to OpenAPI, aligned with existing standards:
Two Approaches
Approach A: New Root-Level
lifecycleObjectPros:
Cons:
Approach B: Extend Info Object (Minimal Change)
Pros
deprecated: truemirrors operation-level patternCons
Proposed Schema Additions
Lifecycle Object (Approach A)
stageactive,deprecated,sunset,deactivatedstageDatedeprecationsunsetresponseHeadersDeprecation Object
datereasonmigrationreplacementcontactSunset Object
datepolicygracePeriodInfo Object Extensions (Approach B)
deprecateddeprecationDatesunsetDatesuccessorVersiondeprecationInfoBeta Was this translation helpful? Give feedback.
All reactions