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

valkyrjaio / valkyrja-java / 37885679772
100%

Build:
DEFAULT BRANCH: 26.x
Ran 09 Oct 2026 04:50AM UTC
Jobs 1
Files 657
Run time 2min
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

09 Oct 2026 04:49AM UTC coverage: 100.0%. Remained the same
37885679772

push

github

web-flow
[Cli] feat(#206)!: Apply the cast that a parameter declares (#207)

# Description

Apply the `Cast` that a CLI route parameter declares. The parameter
stored the cast and returned
each raw value, so a declared cast converted nothing.

A `Caster` service applies it, because a parameter is a data object and
the container belongs to
the service that asks for a value. Java cannot call a static method on a
variable class, so the
container builds the type and the cast names the binding key. The caster
resolves the key with
`getService()` and not `get()`, because `get()` reads the singleton path
first and would build one
type from an empty argument map and cache it for every later value.

`ParameterContract` declares `getValues()` and no longer declares
`getCastValues()`, and it
declares the cast accessors, so an implementation outside the framework
no longer satisfies it.
`Cast` takes a `Class<? extends TypeContract>` rather than a `String`.
The abstract `Parameter`
takes a type argument and declares `copy()` as `final`, so a subclass
outside the framework
implements `createCopy()` instead.

Closes #206

## Types of changes

- [ ] Improvement _(non-breaking change which improves code)_
- [ ] Bug fix _(non-breaking change which fixes an issue)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Deprecation _(breaking change which removes functionality)_
- [x] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [x] Documentation improvement

## Changes

- **`type/contract/TypeContract.java`** — adds the contract for a value
the framework converts.
- **`type/constant/CastArgument.java`** — adds the key the caster passes
to the container.
- **`type/data/Cast.java`** — names the type by its class.
- **`cli/routing/caster/Caster.java`**,
**`caster/contract/CasterContract.java`** — add the service
  that applies a cast.
- **`cli/routing/data/abstract_/Parameter.java`** — reads the raw values
and converts not... (continued)

1977 of 1977 branches covered (100.0%)

Branch coverage included in aggregate %.

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

7078 of 7078 relevant lines covered (100.0%)

4.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37885679772.1 09 Oct 2026 04:50AM UTC 657
100.0
GitHub Action Run
Source Files on build 37885679772
  • Tree
  • List 657
  • Changed 8
  • Source Changed 8
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #37885679772
  • 867caaa1 on github
  • Prev Build on 26.x (#37876171592)
  • Next Build on 26.x (#37886000657)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc