Remove stable from x-stability (#3083)

This commit is contained in:
Nolann B.
2025-04-03 11:33:39 +02:00
committed by GitHub
parent c0b339e406
commit 2b6c593289
4 changed files with 9 additions and 7 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@gitbook/openapi-parser': patch
'@gitbook/react-openapi': patch
'gitbook': patch
---
Remove stable from x-stability
@@ -29,10 +29,6 @@
@apply py-0.5 px-1.5 min-w-[1.625rem] font-normal w-fit justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-sm leading-[calc(max(1.20em,1.25rem))] before:!content-none after:!content-none;
}
.openapi-stability-stable {
@apply text-green-600 dark:text-green-300 bg-green-50 dark:bg-green-900/6 ring-green-500/5;
}
.openapi-stability-alpha {
@apply text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-900/6 ring-amber-500/5;
}
+2 -2
View File
@@ -65,12 +65,12 @@ export interface OpenAPICustomOperationProperties {
/**
* Stability of the operation.
* @enum 'experimental' | 'alpha' | 'beta' | 'stable'
* @enum 'experimental' | 'alpha' | 'beta'
*/
'x-stability'?: OpenAPIStability;
}
export type OpenAPIStability = 'experimental' | 'alpha' | 'beta' | 'stable';
export type OpenAPIStability = 'experimental' | 'alpha' | 'beta';
/**
* Custom code samples that can be defined at the operation level.
@@ -108,7 +108,6 @@ const stabilityEnum = {
experimental: 'Experimental',
alpha: 'Alpha',
beta: 'Beta',
stable: 'Stable',
} as const;
function OpenAPIOperationStability(props: { stability: OpenAPIStability }) {