loopback-component-explorer/lib
Miroslav Bajtoš dc815a8421 Refactor conversion of data types
Refactor the way how loopback types are converted to swagger data types.

 - `modelHelper.LDLPropToSwaggerDataType` is responsible for
   producing a valid Swagger Data Type object from LDL object
   (be it a property, accepts item or returns item).

 - LDLPropToSwaggerDataType picks only fields that are part
   of the swagger spec, everything else is excluded from the result.
   It's up to the caller to add extra fields like `description`.

 - refactor `routeHelper.extendWithType` to accept an additional arg:
   the original LDL object. This way it's possible to copy all
   type-specific fields to the output object and don't add anything
   else.
2014-10-16 08:47:18 +02:00
..
class-helper.js Move `convertText` to `typeConverter` 2014-10-16 08:46:37 +02:00
model-helper.js Refactor conversion of data types 2014-10-16 08:47:18 +02:00
route-helper.js Refactor conversion of data types 2014-10-16 08:47:18 +02:00
swagger.js Use `1.0.0` as the default app version. 2014-10-13 17:30:19 +02:00
translate-data-type-keys.js Refactor conversion of data types 2014-10-16 08:47:18 +02:00
type-converter.js Move `convertText` to `typeConverter` 2014-10-16 08:46:37 +02:00
url-join.js Add url-join so path.join() doesn't break windows 2014-07-10 14:09:57 -05:00