• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

strongloop / loopback-next / 1666
76%

Build:
DEFAULT BRANCH: master
Ran 02 Aug 2017 12:07PM UTC
Jobs 2
Files 60
Run time 31s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1666

push

travis-ci

web-flow
Expose app api-spec at "GET /openapi.json" (#475)

- Add new method `app.getApiSpec()` for obtaining
   the OpenAPI spec containing paths (routes) contributed by all
   different means we support
    * app.api()
    * app.route()
    * app.controller()

 - Expose a new REST endpoint "GET /openapi.json" that returns the
   specification provided by `app.getApiSpec()`. This endpoint is
   excluded from the spec.

 - Rework definition of Controller API to make top-level OpenAPI
   fields like "info" optional. Introduce a new interface
   "ControllerSpec" that's used by `@api()` and friends

 - Rename `getApiSpec()` to `getControllerSpec()` to make
   the intent more clear, and also to match the new return type
   `ControllerSpec`.

 - Add a new testlab method `validateApiSpec` that uses
   swagger-parser under the hood to validate OpenAPI spec
   document against OpenAPI specification.

 - Add `validateApiSpec` to our test suites, fix invalid specifications
   discovered by these new tests.

438 of 502 branches covered (87.25%)

Branch coverage included in aggregate %.

1272 of 1340 relevant lines covered (94.93%)

100.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1666.1 02 Aug 2017 12:08PM UTC 0
92.83
Travis Job 1666.1
2 1666.2 02 Aug 2017 12:07PM UTC 0
92.83
Travis Job 1666.2
Source Files on build 1666
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1666
  • 02105006 on github
  • Prev Build on master (#1641)
  • Next Build on master (#1675)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc