Skip to content

Commit 1008eb7

Browse files
committed
Fix format
1 parent 77cccbc commit 1008eb7

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
@apply select-all font-mono font-normal text-tint-strong;
194194
}
195195

196-
.openapi-schema-propertyname[data-deprecated='true'] {
196+
.openapi-schema-propertyname[data-deprecated="true"] {
197197
@apply line-through opacity-9;
198198
}
199199

@@ -402,7 +402,7 @@
402402
-ms-overflow-style: none;
403403
}
404404

405-
.openapi-path-title[data-deprecated='true'] {
405+
.openapi-path-title[data-deprecated="true"] {
406406
@apply line-through;
407407
}
408408

@@ -481,7 +481,7 @@
481481
@apply transition-all;
482482
}
483483

484-
.openapi-section-toggle[aria-expanded='true'] > svg {
484+
.openapi-section-toggle[aria-expanded="true"] > svg {
485485
@apply rotate-90;
486486
}
487487

@@ -504,7 +504,7 @@
504504
@apply hover:bg-primary-hover whitespace-nowrap font-mono font-normal tabular-nums hover:text-primary cursor-pointer transition-all relative text-[0.813rem] text-tint px-1 border border-transparent rounded;
505505
}
506506

507-
.openapi-tabs-tab[aria-selected='true'] {
507+
.openapi-tabs-tab[aria-selected="true"] {
508508
@apply text-primary after:absolute after:-bottom-2 after:left-0 after:w-full after:h-px after:bg-primary-solid after:transition-all;
509509
}
510510

@@ -542,7 +542,7 @@
542542
@apply invisible;
543543
}
544544

545-
.openapi-disclosure-group-trigger[aria-expanded='true'] .openapi-response-description {
545+
.openapi-disclosure-group-trigger[aria-expanded="true"] .openapi-response-description {
546546
@apply whitespace-normal;
547547
}
548548

@@ -558,7 +558,7 @@
558558
@apply pb-2.5;
559559
}
560560

561-
.openapi-disclosure-group-trigger[aria-expanded='true'] > .openapi-disclosure-group-icon > svg {
561+
.openapi-disclosure-group-trigger[aria-expanded="true"] > .openapi-disclosure-group-icon > svg {
562562
@apply rotate-90;
563563
}
564564

@@ -587,19 +587,19 @@
587587
@apply size-3 shrink-0 transition-transform duration-300;
588588
}
589589

590-
.openapi-disclosure-trigger[aria-expanded='true'] svg {
590+
.openapi-disclosure-trigger[aria-expanded="true"] svg {
591591
@apply rotate-45;
592592
}
593593

594-
.openapi-disclosure-trigger[aria-expanded='true'] {
594+
.openapi-disclosure-trigger[aria-expanded="true"] {
595595
@apply w-full rounded-lg border-b rounded-b-none;
596596
}
597597

598-
.openapi-disclosure-trigger[aria-expanded='false'] {
598+
.openapi-disclosure-trigger[aria-expanded="false"] {
599599
@apply w-auto;
600600
}
601601

602-
.openapi-disclosure-panel[aria-hidden='false'] {
602+
.openapi-disclosure-panel[aria-hidden="false"] {
603603
@apply border-b border-x border-tint-subtle rounded-b-lg;
604604
}
605605

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export function OpenAPIModelSchema(): JSX.Element {
1+
export function OpenAPIModelSchema() {
22
return <></>;
33
}

packages/react-openapi/src/resolveOpenAPIOperation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function resolveOpenAPIOperation(
4040
};
4141
}
4242

43-
const servers = 'servers' in schema ? schema.servers ?? [] : [];
43+
const servers = 'servers' in schema ? (schema.servers ?? []) : [];
4444
const security = flattenSecurities(operation.security ?? schema.security ?? []);
4545

4646
// Resolve securities

0 commit comments

Comments
 (0)