Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The required enterprise OSRM converter change must ship in the same release but remains unverified, and JSON-only tests do not validate FlatBuffers decoding for full and update responses.
No open issues 🎉
What changed in this PR
Updates the maps service client to request FlatBuffers travel-time matrices while retaining JSON support. Release must align with the enterprise converter update.
Changes:
- Advertises both formats for full-matrix and update requests.
- Records the annotation changes in Revapi.
- Adds tests for both requests’
Acceptheaders.
| File | Description |
|---|---|
| service/maps/service-integration/src/main/java/ai/timefold/solver/service/maps/service/integration/internal/MapServiceApi.java | Adds the FlatBuffers media type to distance requests. |
| service/maps/service-integration/src/build/revapi-differences.json | Documents accepted annotation changes. |
| service/maps/service-client/src/test/java/ai/timefold/solver/service/maps/service/client/api/TravelTimeMatrixEnricherAcceptHeaderTest.java | Checks FlatBuffers and JSON headers for full and update requests. |
Review effort: Balanced
The maps service client now sends "Accept: application/x-flatbuffers, application/json" for the travel time and distance requests. A maps service that can return OSRM table responses in flatbuffers does so only when the request asks for it; older maps services ignore the header and answer in JSON.
larsbeck
force-pushed
the
maps/accept-flatbuffers
branch
from
December 4, 2026 13:16
0d74401 to
f90357a
Compare
larsbeck
requested review from
jennedebleser
and
a balanced review from Copilot
December 4, 2026 13:47
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changes
The maps service client now sends
Accept: application/x-flatbuffers, application/jsonforPOST /v1/distancesandGET /v1/distances.MapServiceApi.APPLICATION_FLATBUFFERSholds the media type. Revapi reports the changed@Producesvalues;revapi-differences.jsonrecords them with a justification.Tests
TravelTimeMatrixEnricherAcceptHeaderTest: enriches a model twice (a full matrix request and an update request) against the WireMock map service and checks that both requests accept flatbuffers and JSON. Without the@Produceschange, the test fails.service-integrationandservice-client: all tests pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01UUczJSzTQ9zXe1wLE2raD9