File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
gitbook/src/components/DocumentView/OpenAPI Expand file tree Collapse file tree 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 209209 @apply text-primary-subtle/9 text-[0.813rem ];
210210}
211211
212+ .openapi-schema-writeonly {
213+ @apply text-success dark:text-success-subtle/9 text-[0.813rem ];
214+ }
215+
212216.openapi-schema-type {
213217 @apply text-tint select-text text-[0.813rem ] font-mono [word-spacing:-0.25rem];
214218}
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ export function OpenAPISchemaName(props: OpenAPISchemaNameProps) {
3232 ) : null }
3333 </ span >
3434 { 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 }
3538 { required ? (
3639 < span className = "openapi-schema-required" > required</ span >
3740 ) : (
You can’t perform that action at this time.
0 commit comments