We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c382b79 commit 6757900Copy full SHA for 6757900
packages/docusaurus-theme-openapi-docs/src/theme/ParamsItem/index.tsx
@@ -71,27 +71,17 @@ function ParamsItem({ param, ...rest }: Props) {
71
} = param;
72
73
let schema = param.schema;
74
+ let defaultValue: string | undefined;
75
76
if (!schema || !schema?.type) {
77
schema = { type: "any" };
78
}
-
79
- let defaultValue: string | undefined;
80
81
- if (
82
- schema && schema.items
83
- ? schema.items.default
84
- : schema
85
- ? schema.default
86
- : undefined
87
- ) {
88
- }
89
90
if (schema) {
91
if (schema.items) {
92
defaultValue = schema.items.default;
+ } else {
+ defaultValue = schema.default;
93
94
- defaultValue = schema.default;
95
96
97
const renderSchemaName = guard(schema, (schema) => (
0 commit comments