Skip to content

Commit 51a7ebc

Browse files
committed
Add write-only
1 parent bd3fba7 commit 51a7ebc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@
213213
@apply text-primary-subtle/9 text-[0.813rem];
214214
}
215215

216+
.openapi-schema-writeonly {
217+
@apply text-success text-[0.813rem];
218+
}
219+
216220
.openapi-schema-type {
217221
@apply text-tint select-text text-[0.813rem] font-mono [word-spacing:-0.25rem];
218222
}

packages/react-openapi/src/OpenAPISchemaName.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
) : (

0 commit comments

Comments
 (0)