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

strongloop / loopback-next / 1664
93%
master: 76%

Build:
Build:
LAST BUILD BRANCH: pm2-deployment-docs
DEFAULT BRANCH: master
Ran 02 Aug 2017 08:56AM UTC
Jobs 2
Files 60
Run time 6s
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
1664

push

travis-ci

bajtos
Expose app api-spec at "GET /openapi.json"

 - 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 %.

46 of 46 new or added lines in 11 files covered. (100.0%)

1272 of 1340 relevant lines covered (94.93%)

100.85 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
packages/testlab/src/validate-api-spec.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
packages/core/src/router/routing-table.ts
8
100.0
packages/core/src/application.ts
Jobs
ID Job ID Ran Files Coverage
1 1664.1 02 Aug 2017 08:56AM UTC 0
92.83
Travis Job 1664.1
2 1664.2 02 Aug 2017 08:56AM UTC 0
92.83
Travis Job 1664.2
Source Files on build 1664
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1664
  • 9447d0f3 on github
  • Prev Build on feature/expose-full-open-api-spec (#1623)
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

© 2025 Coveralls, Inc