-
Notifications
You must be signed in to change notification settings - Fork 9
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
Plural names for arrays #23
Comments
Hi! This brings up a deceptively deep issue that I've struggled with in the past: which fields should be lists and which should be single strings? As discussed in #7 and decided in #7 (comment), we decided some fields should be lists and others should be single strings. But I still think this is kind of a weird place to be because it seems like we're likely to guess wrong about whether someone will want to have multiple values for a given field. Will someone eventually want to have multiple Here's one simpler option, to wade back into that complex discussion: let's turn all these things (artist, genre, albumartist) back into normal strings, not arrays, in the same way that beets, GrooveBasin (#7 (comment)) and Mopidy (#7 (comment)) all do it. This will keep servers and clients simple, and I think the vast majority of software will want to look for a single string for artists. We can treat "multiple values" as an extension for the future. That is, we'll come up with a principled way to add list version of otherwise-single-value fields. For example, a server that supports multiple artists will be able to specify How does that sound? |
Yes I thought it might be a complicated issue :-) Your idea of having multiple values as an extensions sounds good |
Oops, clicked the button accidently, will continue below: I remember reading #7 now, and there's lots of different possibilities, but single valued fields is definitely simplest, and at not much/no expense if arbitrary fields can have multiple values in an extension. On a side note (related to #7 (comment)) I am in favour of keeping the |
Agreed. I disagree with my past self, basically: the |
Hello,
would it make sense for attributes that are arrays to have plural key names?
For example the artist attribute of a track:
artist, string array: The recording artists.
would become
artists, string array: The recording artists.
The other affected attributes would be
genre
,albumartist
andcomposer
.I think pluralising the names in these cases would help make it clearer that they can have multiple values.
The text was updated successfully, but these errors were encountered: