-
Notifications
You must be signed in to change notification settings - Fork 883
unify id and ids #392
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
unify id and ids #392
Conversation
This distinction is unnecessary. Checking if `id` is a string, an array or null is trivial for clients.
I am 👍 on this. Seems like a very minor, odd case. |
Back in the day people hoped that the keys could be unified, but for unknown reasons the idea didn't make its way into the spec. Just a couple of days ago, @ethanresnick brought this up again in #312. It's not just about I've investigated the old threads, and it appears there was disagreement on singular vs. plural for the key, and that may even be why it all fell apart. Based on this observation, I suggested in #312 the following:
I don't insist on any specific key, but I would like there to be just one. If it's an array, you know it's to-many, and if the array elements are objects, you know it's heterogeneous (the same can also be inferred from the absence of a shared |
Yeah, this discussion is happening in #312 too. I think we should use a new word rather than just chopping off the What do you guys think of
|
The reason I like "reference" is that it's perhaps the only word whose actual meaning fits the use case extremely well. It should also be acceptable to those who are concerned about grammatical number. If the spec wants to avoid abbreviations, then I can appreciate that. But it didn't even occur to me that
One more option that occurs to me is
EDIT: I guess the thing that bugs me about EDIT 2: Let's also consider what an empty to-many would look like:
|
@steveklabnik, does the merging of this PR indicate that you would be opposed to fusing the third overlapping member ( |
This distinction is unnecessary. Checking if
id
is a string, anarray or null is trivial for clients.