docusaurus-plugin-openapi-docs 0.0.0-477 → 0.0.0-478
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -566,7 +566,7 @@ function createRequestSchema({ title, body, ...rest }) {
|
|
|
566
566
|
const mimeTypes = Object.keys(body.content);
|
|
567
567
|
if (mimeTypes && mimeTypes.length > 1) {
|
|
568
568
|
return (0, utils_1.create)("MimeTabs", {
|
|
569
|
-
|
|
569
|
+
schemaType: "request",
|
|
570
570
|
children: mimeTypes.map((mimeType) => {
|
|
571
571
|
const firstBody = body.content[mimeType].schema;
|
|
572
572
|
if (firstBody === undefined) {
|
|
@@ -566,7 +566,7 @@ function createResponseSchema({ title, body, ...rest }) {
|
|
|
566
566
|
const mimeTypes = Object.keys(body.content);
|
|
567
567
|
if (mimeTypes && mimeTypes.length) {
|
|
568
568
|
return (0, utils_1.create)("MimeTabs", {
|
|
569
|
-
|
|
569
|
+
schemaType: "response",
|
|
570
570
|
children: mimeTypes.map((mimeType) => {
|
|
571
571
|
const responseExamples = body.content[mimeType].examples;
|
|
572
572
|
const responseExample = body.content[mimeType].example;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-plugin-openapi-docs",
|
|
3
3
|
"description": "OpenAPI plugin for Docusaurus.",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-478",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=14"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "21a3ec200f03b4f615052a7055b82b08a48212d6"
|
|
72
72
|
}
|
|
@@ -721,7 +721,7 @@ export function createRequestSchema({ title, body, ...rest }: Props) {
|
|
|
721
721
|
|
|
722
722
|
if (mimeTypes && mimeTypes.length > 1) {
|
|
723
723
|
return create("MimeTabs", {
|
|
724
|
-
|
|
724
|
+
schemaType: "request",
|
|
725
725
|
children: mimeTypes.map((mimeType) => {
|
|
726
726
|
const firstBody = body.content![mimeType].schema;
|
|
727
727
|
if (firstBody === undefined) {
|
|
@@ -721,7 +721,7 @@ export function createResponseSchema({ title, body, ...rest }: Props) {
|
|
|
721
721
|
|
|
722
722
|
if (mimeTypes && mimeTypes.length) {
|
|
723
723
|
return create("MimeTabs", {
|
|
724
|
-
|
|
724
|
+
schemaType: "response",
|
|
725
725
|
children: mimeTypes.map((mimeType: any) => {
|
|
726
726
|
const responseExamples = body.content![mimeType].examples;
|
|
727
727
|
const responseExample = body.content![mimeType].example;
|