Commit Graph

12 Commits

Author SHA1 Message Date
Shelby Sanders 7f4e8b3f87 Corrected merge issues 2014-10-07 15:27:49 -07:00
Shelby Sanders 5ef5baee06 Corrected prepareDataType() to handle collections and nesting, and changed to always and only use responseMessages 2014-08-06 00:21:48 -07:00
Shelby Sanders c6754baf83 Ported prepareDataType() from old strong-remoting:ext/swagger.js 2014-08-04 20:29:32 -07:00
Shelby Sanders 3dc7de6881 Ported extensions for more Swagger 1.2 metadata, returns+errors as responseMessages, consumes+produces, and X-Forwarded-Proto for reverse-proxying from HTTPS to HTTP 2014-08-04 18:19:09 -07:00
Samuel Reed 84e9486062 Properly convert complex return types.
Attached tests.
2014-07-20 20:04:10 -05:00
Samuel Reed 6319572a55 Fix up loopback.rest() model definition hack.
In its previous form, array return types were being returned simply
as {type: 'array'}, with their `items` definition forgotten.
2014-07-18 17:31:43 -05:00
Samuel Reed 5c130a4b3d Fix debug namespace, express version. 2014-07-11 14:22:18 -04:00
Samuel Reed 4b3785c0b2 Simplify `accepts` and `returns` hacks. 2014-07-11 10:03:58 -04:00
Samuel Reed 781ac2bd12 Rename translateKeys to translateDataTypeKeys. 2014-07-10 14:09:57 -05:00
Samuel Reed 3ce35e1431 Refactor route-helper & add tests.
- Uses model-helper to parse types for swagger.
- Separated returns & accepts hacks.
- Documentation fixes
- TODO add param regex
2014-07-10 14:09:57 -05:00
Samuel Reed a4a36f5602 Refactor key translations between LDL & Swagger.
Route.accepts & route.returns can now share these translations.
2014-07-06 09:50:24 -05:00
Samuel Reed 4c0ce42001 Refactoring swagger 1.2 rework.
Added comments, api version, and better Swagger 1.2 compat.
2014-07-05 14:32:00 -05:00