Skip to content

Fixed if-statement#24

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

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

Conversation

@David-Sellen
Copy link

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

}

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