mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 23:55:20 +00:00
Add OpenAPI write-only indicator (#3059)
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
'@gitbook/react-openapi': patch
|
||||||
|
'gitbook': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add OpenAPI write-only indicator
|
||||||
@@ -209,6 +209,10 @@
|
|||||||
@apply text-primary-subtle/9 text-[0.813rem];
|
@apply text-primary-subtle/9 text-[0.813rem];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.openapi-schema-writeonly {
|
||||||
|
@apply text-success dark:text-success-subtle/9 text-[0.813rem];
|
||||||
|
}
|
||||||
|
|
||||||
.openapi-schema-type {
|
.openapi-schema-type {
|
||||||
@apply text-tint select-text text-[0.813rem] font-mono [word-spacing:-0.25rem];
|
@apply text-tint select-text text-[0.813rem] font-mono [word-spacing:-0.25rem];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ export function OpenAPISchemaName(props: OpenAPISchemaNameProps) {
|
|||||||
) : null}
|
) : null}
|
||||||
</span>
|
</span>
|
||||||
{schema?.readOnly ? <span className="openapi-schema-readonly">read-only</span> : null}
|
{schema?.readOnly ? <span className="openapi-schema-readonly">read-only</span> : null}
|
||||||
|
{schema?.writeOnly ? (
|
||||||
|
<span className="openapi-schema-writeonly">write-only</span>
|
||||||
|
) : null}
|
||||||
{required ? (
|
{required ? (
|
||||||
<span className="openapi-schema-required">required</span>
|
<span className="openapi-schema-required">required</span>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user