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

graphql / graphql-js / 3543
98%

Build:
DEFAULT BRANCH: master
Ran 12 Jun 2018 05:57PM UTC
Jobs 1
Files 199
Run time 17s
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
3543

push

travis-ci

web-flow
BREAKING/BUGFIX Strict coercion of scalar types (#1382)

* BREAKING/BUGFIX Strict coercion of scalar types

This no longer accepts incoming variable values in a potentially lossy way, mirroring the existing behavior for literals. This fixes an issue with GraphQL.js being not spec compliant.

This is breaking since servers which used to accept incorrect variable values will now return errors to clients.

Serialization of values is not affected in the same way, since this is not a client-visible behavior.

As a bonus, this adds unique serialization and coercion functions for the ID type, allowing to be more restrictive on numeric types and un-stringable object types, while directly supporting valueOf() methods (ala MongoDB). The changes to how the ID type serializes and coerces data could be potentially breaking.

Fixes #1324

* Updates from review. Simplified ID serialization and added similar logic to string serialization

3452 of 3704 branches covered (93.2%)

10790 of 10928 relevant lines covered (98.74%)

1073.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3543.1 12 Jun 2018 05:57PM UTC 0
98.74
Travis Job 3543.1
Source Files on build 3543
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3543
  • 3521e142 on github
  • Prev Build on master (#3542)
  • Next Build on master (#3547)
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