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

Implementing tv show keywords #80

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Implementing tv show keywords #80

wants to merge 6 commits into from

Conversation

agmbk
Copy link
Contributor

@agmbk agmbk commented Apr 1, 2024

No description provided.

Copy link
Owner

@jdrouet jdrouet left a comment

Choose a reason for hiding this comment

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

Just a basic question on the output type.

}

impl crate::prelude::Command for TVShowKeywords {
type Output = TVShowKeywordsResult;
Copy link
Owner

Choose a reason for hiding this comment

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

I'm wondering what the id field in this struct refers to. If it's only the TV show id, then we could just consider Vec<Keyword> as the output type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

id is indeed the tv show id. Tmdb likes to send it back.
After cheking, this kind of implementation is used in many routes, company images, alternative names, alternative titles, just to name a few, where the result could be simplified to a single vector.
Also endpoints like tv show images, or movie credits also serialize the id field where it could be skipped.
So what should be done ?

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.

None yet

2 participants