File tree 3 files changed +13
-0
lines changed
gitbook/src/components/DocumentView/OpenAPI
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @gitbook/react-openapi ' : patch
3
+ ' gitbook ' : patch
4
+ ---
5
+
6
+ Add OpenAPI write-only indicator
Original file line number Diff line number Diff line change 209
209
@apply text-primary-subtle/9 text-[0.813rem ];
210
210
}
211
211
212
+ .openapi-schema-writeonly {
213
+ @apply text-success dark:text-success-subtle/9 text-[0.813rem ];
214
+ }
215
+
212
216
.openapi-schema-type {
213
217
@apply text-tint select-text text-[0.813rem ] font-mono [word-spacing:-0.25rem];
214
218
}
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ export function OpenAPISchemaName(props: OpenAPISchemaNameProps) {
32
32
) : null }
33
33
</ span >
34
34
{ schema ?. readOnly ? < span className = "openapi-schema-readonly" > read-only</ span > : null }
35
+ { schema ?. writeOnly ? (
36
+ < span className = "openapi-schema-writeonly" > write-only</ span >
37
+ ) : null }
35
38
{ required ? (
36
39
< span className = "openapi-schema-required" > required</ span >
37
40
) : (
You can’t perform that action at this time.
0 commit comments