Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RaphaelSilva opened this issue Aug 13, 2024 · 0 comments
Open

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

RaphaelSilva opened this issue Aug 13, 2024 · 0 comments

Comments

@RaphaelSilva
Copy link

RaphaelSilva commented Aug 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant