You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getOperationFromConfig(funcName, documentationConfig) {
const operationObj = {
operationId: funcName,
};
if (documentationConfig.summary) {
operationObj.summary = documentationConfig.summary;
}
if (documentationConfig.description) {
operationObj.description = documentationConfig.description;
}
if (documentationConfig.tags) {
operationObj.tags = documentationConfig.tags;
}
if (documentationConfig.deprecated) {
operationObj.deprecated = true;
}
if (operationObj.requestBody) {
operationObj.requestBody = this.getRequestBodiesFromConfig(documentationConfig);
}
if (operationObj.parameters) {
operationObj.parameters = this.getParametersFromConfig(documentationConfig);
}
operationObj.responses = this.getResponsesFromConfig(documentationConfig);
return operationObj;
}
operationObj.requestBody and parameters always will be undefined and documentationConfig has no documented parameters variables.
documentationConfig has no parameters variable and when it changed to test the queryParams variable then it will works.
The text was updated successfully, but these errors were encountered:
serverless-openapi-documentation/src/DefinitionGenerator.ts
Line 151 in 6df0be3
operationObj.requestBody and parameters always will be undefined and documentationConfig has no documented parameters variables.
documentationConfig has no parameters variable and when it changed to test the queryParams variable then it will works.
The text was updated successfully, but these errors were encountered: