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 2500d35 commit 500ca3dCopy full SHA for 500ca3d
packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.ts
@@ -191,7 +191,8 @@ function createItems(
191
192
// Handle vendor JSON media types
193
const bodyContent = operationObject.requestBody?.content;
194
- if (bodyContent) {
+
195
+ if (bodyContent && Object.keys(bodyContent).length > 0) {
196
const firstBodyContentKey = Object.keys(bodyContent)[0];
197
if (firstBodyContentKey.endsWith("+json")) {
198
const firstBody = bodyContent[firstBodyContentKey];
0 commit comments