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

Respect primitve mapping on type and format attributs of 1.2 spec #266

Merged
merged 1 commit into from
Jun 30, 2015

Conversation

frodrigo
Copy link
Contributor

Respect primitve mapping on type and format attributs of 1.2 swagger spec: https://github.com/swagger-api/swagger-spec/blob/master/versions/1.2.md#431-primitives

@@ -1,5 +1,15 @@
module GrapeSwagger
module DocMethods
@@primitive_mapping = {
Copy link
Member

Choose a reason for hiding this comment

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

This can be a CONSTANT.

@dblock
Copy link
Member

dblock commented Jun 29, 2015

Thanks. This needs tests and a passing build, please.

@frodrigo frodrigo force-pushed the type_format branch 2 times, most recently from ee3f4be to 2e81198 Compare June 29, 2015 16:18
@frodrigo
Copy link
Contributor Author

All known problem fixed.

@@ -1,5 +1,15 @@
module GrapeSwagger
module DocMethods
PRIMITIVE_MAPPING = {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe PRIMITIVE_MAPPINGS (plural)?

@dblock
Copy link
Member

dblock commented Jun 30, 2015

It would be nice to extend tests to all primitive mappings, but I would merge without. Can you squash the commits, please?

@frodrigo
Copy link
Contributor Author

Squash and plural done.

dblock added a commit that referenced this pull request Jun 30, 2015
Respect primitve mapping on type and format attributs of 1.2 spec
@dblock dblock merged commit 77305c4 into ruby-grape:master Jun 30, 2015
@dblock
Copy link
Member

dblock commented Jun 30, 2015

Merged, thanks.

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