-
Notifications
You must be signed in to change notification settings - Fork 476
UUID data_type format support #531
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Generated by 🚫 danger |
thanks @migmartri for contributing, please add a spec |
Updating changelog
37f24a2
to
914cb94
Compare
Thanks @LeFnord In my opinion we should proceed the following way:
Please note that I have not added tests for my new type since I could not find any existing spec for the method Thanks, |
answered on referenced issue |
@migmartri yeap, sounds good to me, so I will mörge this one, and the more general approach would be a new one |
@LeFnord thank you. I appreciate it :) |
Updating changelog
Updating changelog
Hi!
In the Swagger spec, uuid is mentioned next to email as a custom format. So I have added support for it.
In any case, have you guys thought about allowing the format customization via
documentation[:format]?
, i.edocumentation: { type: 'string', format: 'uuid' }
? so hardcoding formats is not needed anymore?Currently the method
document_type_and_format
seems to to ignore the format for non primitive types.Thanks!
Miguel