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

Fixed if-statement #24

Closed
wants to merge 1 commit into from
Closed

Conversation

David-Sellen
Copy link

Hi! Fixed if-statement related to #16 since it caused parameters and request bodies to be ignored.

operationObj.requestBody = this.getRequestBodiesFromConfig(documentationConfig);
}

if (operationObj.parameters) {
if (documentationConfig.parameters) {
Copy link

@jhaagmans jhaagmans Aug 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be:
if (documentationConfig.queryParams || documentationConfig.pathParams || documentationConfig.cookieParams || documentationConfig.requestHeaders)

However, the if statement shouldn't be needed in this piece of code, when none of these parameters are present, it will continue at line 179 of DefinitionGenerator.ts.

@kzhou57
Copy link

kzhou57 commented Aug 9, 2018

Tested it, it doesn't sound working. PR #27 doesn't work either

@nfour
Copy link
Collaborator

nfour commented Aug 30, 2018

See #27

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

Successfully merging this pull request may close these issues.

4 participants