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

exegesis-js / exegesis / 454
83%

Build:
DEFAULT BRANCH: master
Ran 26 Apr 2019 03:36PM UTC
Jobs 4
Files 50
Run time 45s
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
454

push

travis-ci

jwalton
fix(validation): When validation requests, only do type coercion on requests without implicit type

When validation a parameter in a URL, we need to do type coercion to make sure it matches the
schema, since `?foo=9` could represent the string "9" or the number 9.  We were doing type coercion
on all requests, but in a JSON request the type is explicitly specified by the JSON (e.g. `{"foo":
9}` vs. `{"foo": "9"}`).  In cases where a schem allowed either a string or a number, AJV would
sometimes do type coercion where none was neccesary.  This fixes it so that we only do type coercion
on requests with a media type of "application/x-www-form-urlencoded" or "multipart/form-data".
Since types are no longer converted in JSON requests, it's possible some clients
have been sending bad requests all this time and will now start failing.

fix #73

388 of 459 branches covered (84.53%)

Branch coverage included in aggregate %.

798 of 946 relevant lines covered (84.36%)

370.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 454.1 26 Apr 2019 03:36PM UTC 0
84.04
Travis Job 454.1
2 454.2 26 Apr 2019 03:37PM UTC 0
84.16
Travis Job 454.2
3 454.3 26 Apr 2019 03:37PM UTC 0
84.04
Travis Job 454.3
4 454.4 26 Apr 2019 03:37PM UTC 0
84.04
Travis Job 454.4
Source Files on build 454
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #454
  • 2d902b34 on github
  • Prev Build on master (#451)
  • Next Build on master (#467)
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