loopback-component-explorer/test
Miroslav Bajtoš 0b17811546 Generate Swagger Spec 2.0 documentation
Notable breaking changes:

- The swagger output is a single object (JSON response) served
  at /explorer/swagger.json

- Methods with a single return arg without "root:true" flag
  are expected to produce an object response with a single property now,
  i.e. `{ data: arg }`.
  In v1.x, we were treating such arg as if "root:true" was specified.
  The new behaviour matches the actual implementation in strong-remoting.

- The property constraint "length" is translated to "maxLength" now.

- `operationId` includes model name now, because ids must be unique

- X-Forwarded-* headers are no longer processed, Swagger Spec 2.0
  has a way how to specify "use the scheme + host where the doc is served"

- opts.omitProtocolInBaseUrl was removed for the same reasons as
  X-Forwarded-* headers

- The deprecated opts.swaggerDistRoot was removed.
2015-08-21 18:55:32 +02:00
..
fixtures/dummy-swagger-ui Merge remote-tracking branch 'upstream/master' into validate_param_enum 2015-07-02 11:03:27 -07:00
.jshintrc Refactoring swagger 1.2 rework. 2014-07-05 14:32:00 -05:00
explorer.test.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
model-helper.test.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
route-helper.test.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
schema-builder.test.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
swagger.test.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
tag-builder.test.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00