Skip to content

feat(extended-scalars): bump graphql-java-extended-scalars to 24.0 and register new scalars - #2348

Merged
jjacobs44 merged 1 commit into
Netflix:masterfrom
voidstackloop:feature/extended-scalars-24
Sep 14, 2026
Merged

jjacobs44 merged 1 commit into
Netflix:masterfrom
voidstackloop:feature/extended-scalars-24

Conversation

@voidstackloop

Copy link
Copy Markdown
Contributor

Pull request checklist

  • Please read our contributor guide
  • Consider creating a discussion on the discussion forum first
  • Make sure the PR doesn't introduce backward compatibility issues
  • Make sure to have sufficient test cases

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Changes in this PR

Bumps graphql-java-extended-scalars from 22.0 to 24.0 (the latest stable release) and registers the scalar types that were added since 22.0, which were previously not covered by the autoconfiguration:

  • Time/date group (dgs.graphql.extensions.scalars.time-dates): YearMonth, Year, AccurateDuration, NominalDuration, SecondsSinceEpoch.
  • New colors group (dgs.graphql.extensions.scalars.colors): HexColorCode, enabled by default and independently disableable like the other groups.

It also updates the Spring configuration metadata (spring-configuration-metadata.json) and adds:

  • an autoconfiguration test asserting the new colors group is present by default and can be disabled, and
  • a smoke test exercising each new scalar over a GraphQL query.

Dependency lock files were updated for the version bump only (graphql-java-extended-scalars 22.0 -> 24.0); no other locked versions were touched.

Issue #2347

Alternatives considered

  • HexColorCode could have been added to an existing category (e.g. chars), but a dedicated colors group is consistent with the existing single-scalar groups (currency, country, ids) and keeps it independently configurable.
  • Uri exists on the library's master branch but is not part of any stable release, so it was intentionally left out and can be added once released.

Testing

  • ./gradlew :graphql-dgs-extended-scalars:test — passes (autoconfiguration tests now 12, smoke tests 5; includes the new cases).
  • ./gradlew :graphql-dgs-extended-scalars:ktlintCheck — passes.
  • ./gradlew :graphql-dgs:test and ./gradlew :graphql-dgs-client:test — pass.

…d register new scalars

Bumps graphql-java-extended-scalars from 22.0 to 24.0 and registers the scalar
types added since 22.0:

- Time/date group: YearMonth, Year, AccurateDuration, NominalDuration,
  SecondsSinceEpoch.
- New colors group: HexColorCode, configurable via
  dgs.graphql.extensions.scalars.colors.enabled.

Also updates the Spring configuration metadata and adds autoconfiguration and
smoke tests for the new scalars. Dependency lock files were updated for the
version bump only.

Note: graphql-java-extended-scalars master also adds a Uri scalar, but it is
not part of any stable release yet, so it is not registered here.

Fixes Netflix#2347
@jjacobs44
jjacobs44 merged commit 622f6b1 into Netflix:master Sep 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants