diff --git a/test/index.js b/test/index.js index 6099fbe6..9ff966a1 100644 --- a/test/index.js +++ b/test/index.js @@ -33,7 +33,7 @@ async function generateV3() { } async function generate() { - // await generateV2(); + await generateV2(); await generateV3(); } diff --git a/test/spec/v3.json b/test/spec/v3.json index d07f5f77..b49e8dfb 100644 --- a/test/spec/v3.json +++ b/test/spec/v3.json @@ -314,7 +314,29 @@ "RequestBody" ], "requestBody": { - "$ref": "#/components/requestBodies/SimpleRequestBody" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/requestBodies/SimpleRequestBody" + } + } + } + } + } + }, + "/api/v{api-version}/formData/": { + "post": { + "tags": [ + "FormData" + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/requestBodies/SimpleRequestBody" + } + } + } } } },