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

danivek / json-api-serializer / 372
100%

Build:
DEFAULT BRANCH: master
Ran 02 Jul 2020 07:02AM UTC
Jobs 3
Files 5
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
372

push

travis-ci

web-flow
feat: improve error serialization (#111)

Improves the serialization of errors to be compliant with the JSON:API
spec:

* Remove explicit check for `Error` instances and, instead, validate
  both instances of `Error` and POJOs using `validateError`
* Restrict `links` object properties to `about`
* Restrict `links.about` object property type to string
* Restrict `source` object properties to `pointer` and `parameter`
* Restrict `meta` object property type to object
* Add function for validating `status` against a list of known HTTP
  status codes
* Restrict `status` object property type to number
* Support both `status` and `statusCode` properties
* Add tests for new functionality
* Update tests for changed functionality
* Update README.md with additional usage examples

closes #110 
closes #111

493 of 510 branches covered (96.67%)

35 of 35 new or added lines in 2 files covered. (100.0%)

484 of 484 relevant lines covered (100.0%)

116.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 372.1 02 Jul 2020 07:02AM UTC 0
100.0
Travis Job 372.1
2 372.2 02 Jul 2020 07:02AM UTC 0
100.0
Travis Job 372.2
3 372.3 02 Jul 2020 07:02AM UTC 0
100.0
Travis Job 372.3
Source Files on build 372
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #372
  • 7aafe29c on github
  • Prev Build on master (#367)
  • Next Build on master (#373)
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