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

dropwizard / dropwizard / 2768
86%

Build:
DEFAULT BRANCH: master
Ran 29 Sep 2016 05:40AM UTC
Jobs 1
Files 346
Run time 16s
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
2768

push

travis-ci

evnm
Jersey Validation Improvements (#1734)

Better Enum Validation Messages

Currently Dropwizard resources return a 404 if a request is made with
an invalid value for a parameter of an Enum type. This change adds
ValidatingEnumParamConverterProvider, which provides converters for all
enums used in method parameters. The converter then provides better
error messages like "query param choice must be one of [OptionA,
OptionB, OptionC]" when invalid values are sent.

Parameter Names in Parse Failure Messages

Currently when an invalid value is passed into a *Param parameter,
Dropwizard returns an error message like "Parameter is not a
number". This change includes AbstractParamConverterProvider along
with a slight enhancement to the *Param classes that returns messages
that include the name of the parameter that failed validation, like
"query param user_id is not a number."

Hibernate ParameterNameProvider

Small change to move most of parameter naming logic from
ConstraintMessage to JerseyParameterNameProvider. This implements the
standard ParameterNameProvider interface that Hibernate uses to
resolve parameter names during validation.

New DurationParam

Include a new DurationParam that can parse String input in the format
supported by Dropwizard's existing Duration class.

125 of 125 new or added lines in 17 files covered. (100.0%)

5704 of 6955 relevant lines covered (82.01%)

73.16 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
dropwizard-jersey/src/main/java/io/dropwizard/jersey/params/AbstractParam.java
1
100.0
dropwizard-jersey/src/main/java/io/dropwizard/jersey/params/DurationParam.java
1
100.0
dropwizard-jersey/src/main/java/io/dropwizard/jersey/validation/ConstraintMessage.java
2
100.0
dropwizard-jersey/src/main/java/io/dropwizard/jersey/params/BooleanParam.java
2
100.0
dropwizard-jersey/src/main/java/io/dropwizard/jersey/params/DateTimeParam.java
2
100.0
dropwizard-jersey/src/main/java/io/dropwizard/jersey/params/LocalDateParam.java
2
100.0
dropwizard-jersey/src/main/java/io/dropwizard/jersey/params/UUIDParam.java
2
100.0
dropwizard-jersey/src/main/java/io/dropwizard/jersey/validation/FuzzyEnumParamConverterProvider.java
12
100.0
dropwizard-jersey/src/main/java/io/dropwizard/jersey/params/AbstractParamConverterProvider.java
12
100.0
dropwizard-util/src/main/java/io/dropwizard/util/Enums.java
Jobs
ID Job ID Ran Files Coverage
1 2768.1 29 Sep 2016 05:40AM UTC 0
82.01
Travis Job 2768.1
Source Files on build 2768
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2768
  • c45ea5f5 on github
  • Prev Build on master (#2757)
  • Next Build on master (#2769)
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