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

refoctors building definitions for body params #467

Merged
merged 1 commit into from
Jul 6, 2016

Conversation

LeFnord
Copy link
Member

@LeFnord LeFnord commented Jul 5, 2016

No description provided.

subject.instance_variable_set(:@definitions, definitions)
subject.find_definition_and_params(found_path[:post], :post)
expect(definitions.keys).to include 'InBody'
expect(definitions['postRequestInBody'].keys).to_not include :description
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't this case be lost?

Copy link
Member Author

@LeFnord LeFnord Jul 5, 2016

Choose a reason for hiding this comment

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

sorry … first comment was wrong and not related,

no it is always there, see: https://github.com/ruby-grape/grape-swagger/pull/467/files#diff-0a42864b10ca75eb0af2c0fc45139eb0R25

Copy link
Member Author

Choose a reason for hiding this comment

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

but yeah should adding a spec to proof it, thanks

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

yeap … re-added it, thanks 😄

@LeFnord LeFnord force-pushed the master branch 4 times, most recently from 8bd6f23 to 4f5c54d Compare July 5, 2016 22:28
@LeFnord LeFnord force-pushed the master branch 2 times, most recently from 2eb2d4e to 66bf885 Compare July 5, 2016 22:44
- adds base spec
- adds changelog entry
@LeFnord LeFnord merged commit 27ff9f4 into ruby-grape:master Jul 6, 2016
LeFnord added a commit to LeFnord/grape-swagger that referenced this pull request Feb 9, 2019
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.

2 participants