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 c0eba4b commit 70a61b1Copy full SHA for 70a61b1
packages/docusaurus-plugin-openapi-docs/src/openapi/createRequestExample.ts
@@ -181,7 +181,7 @@ export const sampleRequestFromSchema = (schema: SchemaObject = {}): any => {
181
return items?.oneOf.map((item: any) => sampleRequestFromSchema(item));
182
}
183
184
- return [sampleRequestFromSchema(items)];
+ return normalizeArray(sampleRequestFromSchema(items));
185
186
187
if (schemaCopy.enum) {
0 commit comments