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

Remove implementation of SRGImageMetadata for Program, as imageUrl is nullable. #35

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

Loic-Dumas
Copy link
Contributor

Motivation

Program.imageUrl can be null, as defined in the swagger:
Capture d’écran 2024-04-05 à 11 56 48

If no imageUrl is set, Program items can't be parsed.

It occurs in RTS TV Guide 2024-04-05 for RTS. An item has no imageUrl.

Solution approach

Remove implementation of SRGImageMetadata for Program, as imageUrl is nullable.

SRGImageMetadata.imageUrl shouldn't be nullable as image url for other il objects is non null.

…riable is nullable.

SRGImageMetadata.imageUrl shouldn't be nullable as image url for other il objects is non null.
@Loic-Dumas Loic-Dumas requested a review from StaehliJ April 5, 2024 10:01
@Loic-Dumas Loic-Dumas added this pull request to the merge queue Apr 8, 2024
Merged via the queue into main with commit f6fd343 Apr 8, 2024
3 checks passed
@Loic-Dumas Loic-Dumas deleted the Program.imageUrl-is-nullable branch April 8, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants