Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

compact api: destination needs to be object #328

Merged
merged 2 commits into from
May 16, 2023
Merged

Conversation

felixguendling
Copy link
Member

destination is available in IntermodalRoutingRequest which prevents detection of compact API format

destination is available in IntermodalRoutingRequest
which prevents detection of compact API format
@felixguendling felixguendling requested a review from pablohoch May 15, 2023 21:03
Comment on lines 55 to 57
if (!(v.HasMember("destination") &&
v.FindMember("destination")->value.IsString()) &&
!v.HasMember("content")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Müsste destination nicht in beiden Fällen ein Object sein (Destination oder IntermodalDestination)?

Vielleicht sollte man prüfen, ob destination und content vorhanden sind -> dann wird es wohl nicht das kompakte Format sein (if (!(v.HasMember("destination") && v.HasMember("content")))).

@felixguendling felixguendling merged commit 180efa2 into master May 16, 2023
@felixguendling felixguendling deleted the fix_compact_api branch May 16, 2023 07:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants