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

Fix decoding of unrecognized visual instruction component types #394

Merged
merged 1 commit into from
Dec 21, 2019

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Dec 20, 2019

Fixed an issue where an unrecognized type of visual instruction component would cause the component to fail to decode. Instead, treat the component as a text component, as specified in the Directions API documentation.

The regression was introduced in #382. This PR reintroduces pretty much the same code that we had before:

https://github.com/mapbox/MapboxDirections.swift/blob/65857d14080afa1e5463e0dbadd9dec23e66a6f3/Sources/MapboxDirections/MBVisualInstructionComponent.swift#L56

/cc @mapbox/navigation-ios @danpaz

Fixed an issue where an unrecognized type of visual instruction component would cause the component to fail to decode. Instead, treat the component as a text component, as specified in the Directions API documentation.
@1ec5 1ec5 added the bug label Dec 20, 2019
@1ec5 1ec5 added this to the v1.0 milestone Dec 20, 2019
@1ec5 1ec5 requested a review from JThramer December 20, 2019 20:51
@1ec5 1ec5 self-assigned this Dec 20, 2019
@1ec5 1ec5 merged commit ff9997d into master Dec 21, 2019
@1ec5 1ec5 deleted the 1ec5-visualcomponent-type-none branch December 21, 2019 02:10
@1ec5 1ec5 modified the milestones: v1.0.0, v0.31.0 (v0.40) Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant