diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/Response/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/Response/index.tsx index dfd544ffd..db1ff0bbd 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/Response/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/Response/index.tsx @@ -81,12 +81,48 @@ function Response() { - - {prettyResponse || "No Response"} - + {code && prettyResponse !== "Fetching..." ? ( + + {/* @ts-ignore */} + + + {prettyResponse || "No Response"} + + + {/* @ts-ignore */} + + + {JSON.stringify(headers, undefined, 2)} + + + + ) : ( + prettyResponse || "No Response" + )} + ); }