Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed if-statement #24

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

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

Conversation

Copy link

@David-Sellen David-Sellen commented Jul 11, 2018

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

jhaagmans reacted with thumbs up emoji
operationObj.requestBody = this.getRequestBodiesFromConfig(documentationConfig);
}

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

@jhaagmans jhaagmans Aug 2, 2018
edited
Loading

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.

Copy link

kzhou57 commented Aug 9, 2018

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

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
Reviewers
1 more reviewer

@jhaagmans jhaagmans jhaagmans requested changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /