@rjgf/swagger2ts
Advanced tools
Comparing version 0.2.2 to 0.2.6
@@ -0,0 +0,0 @@ export interface IOption { |
@@ -230,3 +230,4 @@ "use strict"; | ||
const formData = instance.requestBody.content['multipart/form-data']; | ||
const json = instance.requestBody.content['application/json']; | ||
const json = instance.requestBody.content['application/json'] || | ||
instance.requestBody.content['*/*']; | ||
if (formData) { | ||
@@ -249,3 +250,3 @@ body = 'FormData'; | ||
else { | ||
const json = successInstance.content['application/json']; | ||
const json = successInstance.content['application/json'] || successInstance.content['*/*']; | ||
if (json) { | ||
@@ -252,0 +253,0 @@ response = generateComponent(void 0, json.schema, 4, json.schema); |
@@ -0,0 +0,0 @@ export interface ISwagger { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -16,3 +16,3 @@ { | ||
], | ||
"gitHead": "4ba43243e1a3e374403ec76522a9f9ed4362a2a0", | ||
"gitHead": "5d951b84d120e643ac59f2ee05b759e8d2c9b1ba", | ||
"license": "Apache-2.0", | ||
@@ -31,3 +31,3 @@ "main": "./dist/index.js", | ||
}, | ||
"version": "0.2.2" | ||
"version": "0.2.6" | ||
} |
@@ -0,0 +0,0 @@ ### 说明 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30873
501