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

graphql / graphql-js / 3528
99%
master: 98%

Build:
Build:
LAST BUILD BRANCH: directives
DEFAULT BRANCH: master
Ran 11 Jun 2018 08:07AM UTC
Jobs 1
Files 199
Run time 10s
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
3528

push

travis-ci

leebyron
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

3448 of 3706 branches covered (93.04%)

87 of 87 new or added lines in 6 files covered. (100.0%)

10784 of 10925 relevant lines covered (98.71%)

1100.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3528.1 11 Jun 2018 08:07AM UTC 0
98.71
Travis Job 3528.1
Source Files on build 3528
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3528
  • 56ac1061 on github
  • Next Build on strict-coercion (#3534)
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