Skip to content

Treat Symbol as string in params parsing #200

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

Merged
merged 1 commit into from
Feb 1, 2015

Conversation

ypresto
Copy link
Contributor

@ypresto ypresto commented Jan 26, 2015

type: Symbol is sometimes useful when accepting enum params.

Currently this library treats it as custom data type sent as body, but it must be same as string in layer of http.

This PR make Symbol treated as string in swagger doc (with only 2 lines!).

Thanks for great product :)

@ypresto
Copy link
Contributor Author

ypresto commented Jan 26, 2015

Class definition is too long. [399/397]

Oh, no... How do I fix it?

@dblock
Copy link
Member

dblock commented Jan 26, 2015

For Rubocop, just run rubocop --auto-gen-config.

@dblock
Copy link
Member

dblock commented Jan 26, 2015

This also needs a CHANGELOG entry please.

You should write a higher level integration test, too (something about the API and the generated swagger doc).

@ypresto
Copy link
Contributor Author

ypresto commented Feb 1, 2015

Added test for generated doc, and CHANGELOG :)

@dblock
Copy link
Member

dblock commented Feb 1, 2015

Looks great!

dblock added a commit that referenced this pull request Feb 1, 2015
Treat Symbol as string in params parsing
@dblock dblock merged commit 34d8bf0 into ruby-grape:master Feb 1, 2015
@ypresto ypresto deleted the symbol-as-string branch June 9, 2016 08:55
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