-
Notifications
You must be signed in to change notification settings - Fork 472
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
Conversation
@@ -1,5 +1,15 @@ | |||
module GrapeSwagger | |||
module DocMethods | |||
@@primitive_mapping = { |
There was a problem hiding this comment.
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.
Thanks. This needs tests and a passing build, please. |
ee3f4be
to
2e81198
Compare
All known problem fixed. |
@@ -1,5 +1,15 @@ | |||
module GrapeSwagger | |||
module DocMethods | |||
PRIMITIVE_MAPPING = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe PRIMITIVE_MAPPINGS (plural)?
It would be nice to extend tests to all primitive mappings, but I would merge without. Can you squash the commits, please? |
Squash and plural done. |
Respect primitve mapping on type and format attributs of 1.2 spec
Merged, thanks. |
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