Skip to content

Fixed if-statement - #24

Closed
David-Sellen wants to merge 1 commit into
temando:masterfrom
David-Sellen:master
Closed

Fixed if-statement#24
David-Sellen wants to merge 1 commit into
temando:masterfrom
David-Sellen:master

Conversation

@David-Sellen

Copy link
Copy Markdown

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

}

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

@jhaagmansjhaagmansAug 2, 2018

Copy link
Copy Markdown

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
Copy Markdown

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

@arnonkiarnonki mentioned this pull request Aug 27, 2018
@nfournfour closed this Aug 30, 2018
@nfour

Copy link
Copy Markdown
Collaborator

See #27

@rburbu mentioned this pull request Jun 26, 2019
Sign up for freeto 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

@David-Sellen@kzhou57@nfour@jhaagmans