Skip to content

[Query and Path params] will never be generate! #52

Open
@RaphaelSilva

Description

@RaphaelSilva

if (operationObj.parameters) {

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions