We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac5ff63 commit a7db7fcCopy full SHA for a7db7fc
1 file changed
packages/docusaurus-theme-openapi-docs/src/theme/ParamsItem/index.tsx
@@ -70,9 +70,14 @@ function ParamsItem({ param, ...rest }: Props) {
70
let schema = param.schema;
71
let defaultValue: string | undefined;
72
73
- if (!schema || !schema?.type) {
+ if (!schema) {
74
schema = { type: "any" };
75
}
76
+
77
+ if (!schema.type) {
78
+ schema.type = "any";
79
+ }
80
81
if (schema) {
82
if (schema.items) {
83
defaultValue = schema.items.default;
0 commit comments