File tree Expand file tree Collapse file tree 3 files changed +12
-105
lines changed
gitbook/src/components/DocumentView/OpenAPI Expand file tree Collapse file tree 3 files changed +12
-105
lines changed Original file line number Diff line number Diff line change 142
142
@apply py-2.5 flex flex-col gap-2;
143
143
}
144
144
145
- .openapi-section-body .openapi-schema-properties {
145
+ .openapi-section .openapi-schema-properties {
146
146
@apply divide-y divide-tint-subtle;
147
147
}
148
148
620
620
@apply space-y-2.5;
621
621
}
622
622
623
- .openapi-models-properties {
623
+ .openapi-section-models {
624
624
@apply border border-tint-subtle rounded-lg;
625
625
}
626
626
627
- .openapi-models-properties .openapi-schema-properties > .openapi-schema {
627
+ .openapi-section- models > . openapi-section-body > .openapi-schema-properties > .openapi-schema {
628
628
@apply p-2.5;
629
- }
630
-
631
- .openapi-models .openapi-disclosure-group-panel > .openapi-section {
632
- @apply py-0;
633
629
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import clsx from 'clsx' ;
2
2
3
3
import { OpenAPIDisclosureGroup } from '../OpenAPIDisclosureGroup' ;
4
+ import { OpenAPIRootSchema } from '../OpenAPISchema' ;
5
+ import { Section , SectionBody } from '../StaticSection' ;
4
6
import type { OpenAPIClientContext , OpenAPIContextProps , OpenAPIModelsData } from '../types' ;
5
- import { OpenAPIModelSchema } from './OpenAPIModelSchema' ;
6
7
7
8
/**
8
9
* Display OpenAPI Models.
@@ -34,7 +35,13 @@ export function OpenAPIModels(props: {
34
35
< span className = "openapi-response-statuscode" > { name } </ span >
35
36
</ div >
36
37
) ,
37
- body : < OpenAPIModelSchema schema = { schema } context = { clientContext } /> ,
38
+ body : (
39
+ < Section className = "openapi-section-models" >
40
+ < SectionBody >
41
+ < OpenAPIRootSchema schema = { schema } context = { clientContext } />
42
+ </ SectionBody >
43
+ </ Section >
44
+ ) ,
38
45
} ) ) }
39
46
/>
40
47
) : null }
You can’t perform that action at this time.
0 commit comments