Skip to content

Commit 2b6c593

Browse files
authored
Remove stable from x-stability (#3083)
1 parent c0b339e commit 2b6c593

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.changeset/old-pianos-talk.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@gitbook/openapi-parser': patch
3+
'@gitbook/react-openapi': patch
4+
'gitbook': patch
5+
---
6+
7+
Remove stable from x-stability

packages/gitbook/src/components/DocumentView/OpenAPI/style.css

-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929
@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;
3030
}
3131

32-
.openapi-stability-stable {
33-
@apply text-green-600 dark:text-green-300 bg-green-50 dark:bg-green-900/6 ring-green-500/5;
34-
}
35-
3632
.openapi-stability-alpha {
3733
@apply text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-900/6 ring-amber-500/5;
3834
}

packages/openapi-parser/src/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ export interface OpenAPICustomOperationProperties {
6565

6666
/**
6767
* Stability of the operation.
68-
* @enum 'experimental' | 'alpha' | 'beta' | 'stable'
68+
* @enum 'experimental' | 'alpha' | 'beta'
6969
*/
7070
'x-stability'?: OpenAPIStability;
7171
}
7272

73-
export type OpenAPIStability = 'experimental' | 'alpha' | 'beta' | 'stable';
73+
export type OpenAPIStability = 'experimental' | 'alpha' | 'beta';
7474

7575
/**
7676
* Custom code samples that can be defined at the operation level.

packages/react-openapi/src/OpenAPIOperation.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ const stabilityEnum = {
108108
experimental: 'Experimental',
109109
alpha: 'Alpha',
110110
beta: 'Beta',
111-
stable: 'Stable',
112111
} as const;
113112

114113
function OpenAPIOperationStability(props: { stability: OpenAPIStability }) {

0 commit comments

Comments
 (0)