-
Notifications
You must be signed in to change notification settings - Fork 18
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
Adds image and image_alternative_text fields to Alerts #670
Conversation
Coverage of commit
|
"timeframe_text" => [] | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: should we have a test that we prefer an en
image over a generic image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
followup: should we have a test that we prefer an image with no language over a non-en
language?
Coverage of commit
|
Coverage of commit
|
3e9797a
to
35760c6
Compare
Coverage of commit
|
Summary of changes
Asana Ticket: 🍎 Add image fields to /alerts API responses
Adds experimental Image and Image Alternative Text fields to Alerts. Image Alternative Text is a translated string type, which we already handle. Image is a localized image type, which works very similarly to translated strings. Both fields are nullable.
Reference for localized image type: https://github.com/google/transit/blob/master/gtfs-realtime/spec/en/reference.md#message-translatedimage