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

preaction / Yancy / 592 / 10
79%
master: 79%

Build:
DEFAULT BRANCH: master
Ran 29 Mar 2020 05:54PM UTC
Files 18
Run time 1s
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

29 Mar 2020 05:37PM UTC coverage: 94.599% (+0.04%) from 94.563%
COVERAGE=1

push

travis-ci

preaction
fix date/time validation of empty strings

@chy-causer reported an issue with validating date/time fields from custom
forms: Form text fields that exist are always sent, even if there's no
value inside (the empty string). This was failing JSON::Validator
validation since the empty string does not match an ISO8601 date/time
field. This was fixed by changing '' to `null` before validation (which
is what the editor does, but before submission). There may be other
things that need this same behavior.

To test this, I needed to add date/time fields to the test schemas. It
didn't make sense to have these _not_ default to the current date/time,
so I did that. Turns out that's a lot harder than I thought: Database
differences are fun, but also supporting the "now" special value was
interesting. It can be used as a default, but not as input from the user
(for now, until we can figure out a sane way to make the JSON schema
support both 'now' and '2020-01-01T00:00:00', maybe regex...)

1156 of 1222 relevant lines covered (94.6%)

198.04 hits per line

Source Files on job 592.10 (COVERAGE=1)
  • Tree
  • List 0
  • Changed 18
  • Source Changed 18
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 367
  • Travis Job 592.10
  • bb841ccf on github
  • Prev Job for COVERAGE=1 on master (#589.10)
  • Next Job for COVERAGE=1 on master (#593.10)
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