Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

omitted optional integer fields parsed as 0 #4

Closed
derhuerst opened this issue Sep 12, 2020 · 2 comments
Closed

omitted optional integer fields parsed as 0 #4

derhuerst opened this issue Sep 12, 2020 · 2 comments
Assignees
Labels

Comments

@derhuerst
Copy link
Owner

TripUpdate.decode(TripUpdate.encode({trip: {trip_id: '1'}}))
{
  trip: {
    trip_id: '1',
    route_id: '',
    direction_id: 0,
    start_time: '',
    start_date: '',
    schedule_relationship: 0
  },
  vehicle: null,
  stop_time_update: [],
  timestamp: 0,
  delay: 0
}

This will lead to unintentionally wrong processing of e.g. delay downstream.

@derhuerst derhuerst added the bug label Sep 12, 2020
@derhuerst
Copy link
Owner Author

This is due to mafintosh/protocol-buffers#20.

@derhuerst
Copy link
Owner Author

Should be fixed because derhuerst/gtfs-rt-bindings#6 is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant