remove logs
This commit is contained in:
parent
d755fd1861
commit
7ffa447cbc
1 changed files with 0 additions and 4 deletions
|
@ -243,15 +243,12 @@ document.getElementById('addOperationBtn').addEventListener('click', function()
|
||||||
if (apiDocs[selectedOperation] && apiDocs[selectedOperation].post) {
|
if (apiDocs[selectedOperation] && apiDocs[selectedOperation].post) {
|
||||||
const postMethod = apiDocs[selectedOperation].post;
|
const postMethod = apiDocs[selectedOperation].post;
|
||||||
|
|
||||||
console.log("hasSettings", hasSettings);
|
|
||||||
// Check if parameters exist
|
// Check if parameters exist
|
||||||
if (postMethod.parameters && postMethod.parameters.length > 0) {
|
if (postMethod.parameters && postMethod.parameters.length > 0) {
|
||||||
hasSettings = true;
|
hasSettings = true;
|
||||||
console.log("hasSettings2", hasSettings);
|
|
||||||
} else if (postMethod.requestBody && postMethod.requestBody.content['multipart/form-data']) {
|
} else if (postMethod.requestBody && postMethod.requestBody.content['multipart/form-data']) {
|
||||||
// Extract the reference key
|
// Extract the reference key
|
||||||
const refKey = postMethod.requestBody.content['multipart/form-data'].schema['$ref'].split('/').pop();
|
const refKey = postMethod.requestBody.content['multipart/form-data'].schema['$ref'].split('/').pop();
|
||||||
console.log("hasSettings3 ", hasSettings, refKey);
|
|
||||||
// Check if the referenced schema exists and has properties more than just its input file
|
// Check if the referenced schema exists and has properties more than just its input file
|
||||||
if (apiSchemas[refKey]) {
|
if (apiSchemas[refKey]) {
|
||||||
const properties = apiSchemas[refKey].properties;
|
const properties = apiSchemas[refKey].properties;
|
||||||
|
@ -260,7 +257,6 @@ document.getElementById('addOperationBtn').addEventListener('click', function()
|
||||||
// Check if there's more than one property or if there's exactly one property and its format is not 'binary'
|
// Check if there's more than one property or if there's exactly one property and its format is not 'binary'
|
||||||
if (propertyKeys.length > 1 || (propertyKeys.length === 1 && properties[propertyKeys[0]].format !== 'binary')) {
|
if (propertyKeys.length > 1 || (propertyKeys.length === 1 && properties[propertyKeys[0]].format !== 'binary')) {
|
||||||
hasSettings = true;
|
hasSettings = true;
|
||||||
console.log("hasSettings4", hasSettings);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue