File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
gitbook/src/components/DocumentView/OpenAPI Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @gitbook/react-openapi ' : patch
3+ ---
4+
5+ Handle read-only in OpenAPISchemaName
Original file line number Diff line number Diff line change 198198}
199199
200200.openapi-schema-required {
201- @apply text-amber-600 text-[0.813rem ];
201+ @apply text-warning-subtle text-[0.813rem ];
202+ }
203+
204+ .openapi-schema-readonly {
205+ @apply text-primary-subtle/9 text-[0.813rem ];
202206}
203207
204208.openapi-schema-type {
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export function OpenAPISchemaName(props: OpenAPISchemaNameProps) {
3030 < span className = "openapi-schema-type" > { additionalItems } </ span >
3131 ) : null }
3232 </ span >
33+ { schema ?. readOnly ? < span className = "openapi-schema-readonly" > read-only</ span > : null }
3334 { required ? < span className = "openapi-schema-required" > required</ span > : null }
3435 { schema ?. deprecated ? < span className = "openapi-deprecated" > Deprecated</ span > : null }
3536 </ div >
You can’t perform that action at this time.
0 commit comments