-
-
Notifications
You must be signed in to change notification settings - Fork 314
headerSchema/targetHints vs targetMetaDataSchema/targetMetaDataHints #566
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
Comments
Also worth thinking is how non-representation operations (e.g. POST) that use |
CoAP options might be a good use case to consider. Some of them align with HTTP headers, but HTTP headers are also involved in HTTP-CoAP proxying. And other options, such as Observe, do not have corresponding HTTP headers. |
Since HTTP headers both contain meta data about the request and its payload (content-type, content-length etc) and indication of desired server behaviour (accept, prefer etc) the usage of metaData for both might slighly confuse someone using hyper schema over HTTP. Where headerSchema is quite straight forward. But I understand the desire for the changes. |
For the sake of those who aren’t super aware of every single hyper Schema keyword and it’s meaning (✋🏼) can you list each rename, with the from keyword and the to keyword?
- foo > bar
Im trying to piece it together from multiple emails from these issues and it’s tough.
…--
Phil Sturgeon
@philsturgeon
On Mar 12, 2018, at 07:59, Martin Hansen ***@***.***> wrote:
Since HTTP headers both contain meta data about the request and its payload (content-type, content-length etc) and indication of desired server behaviour (accept, prefer etc) the usage of metaData for both might slighly confuse someone using hyper schema over HTTP. Where headerSchema is quite straight forward.
But I understand the desire for the changes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@philsturgeon Possible renames include:
The questions being:
I am confident that Currently |
Thanks @handrews! This really helps. In that case, I completely agree with @mokkabonna. Currently the name Using
I dunno, I think submissionMetaDataSchema for request would make more sense, as submissionSchema is describing the body for that same request. Anyone with me? |
That's not accurate (although it is a common misconception due to draft-04). Target describes the target. You get it back from a GET, but you send it with a PUT. You send something based on it with a PATCH. Target is not about sending or receiving, it's about the target. One of the absolute worst effects of draft-04 is that it was confusingly written to the point where people decided that "targetSchema" meant "response" and "schema" (which was more or less renamed to "submissionSchema") meant request, which is absolutely not true.
"submission" definitely does no describe the same request. Submission is only about non-representation data being submitted for processing, which is only one kind of request.
|
The other names that were proposed at one point were something along the lines of |
I quite like "metadata" and it doesn't seem incorrect to me.
I was thinking we might even drop the "target" prefix for these keywords (while inserting "metadata" of course). After all, unless stated otherwise, link attributes concern the "target". No strong opinion though. |
@dlax interesting point about dropping Hmm... |
@awwright @dlax @mokkabonna @philsturgeon I'd like to make a call on this and get it into PR. Also pinging @jdesrosiers as the whole protocol-specific contents solution was his suggestion originally! I think the most promising contenders are either of these pairs:
I don't know of any reason that we'd use these keywords with URN schemes like The most unusual case I can think of is
I think the answer comes from a bit further down in the spec:
This provides a clear split between actual protocol header fields (e.g. MIME) and URI query string fields that more or less map to protocol headers. Those that are provided for in the URI scheme definition are handled there, and go through whatever indirect mapping is appropriate. Those that are directly described for MIME or other aspects of actually sending the email would fall under I think that if we can handle Thoughts? |
I understand the reasoning for wanting to talk about protocol instead of metadata, but to me protocol hints sounds like hinting at which protocol to be using, and thats gonna be a source of confusion for many. Metadata might not be 100% appropriate for these other protocols but they feel a bit edge anyway. |
@philsturgeon hmm.... you know the original name for At this point I have no idea wtf to do with these keywords. All options, including the current ones, have significant detractors, and nothing has clear broad support. |
I am fine with "headerSchema" and "targetHints" tbh. |
OK, I'm going to leave this open for another couple of weeks, but if no one shows up to champion an alternative, we'll stick with |
We'll stick with |
I've had some feedback while talking up hyper-schema that
headerSchema
feels a little too HTTP-specific. And it also occurs to me that these fields aren't named very consistently.Renaming them would produce the following set of keywords for the link target:
targetSchema
targetMediaType
targetMetaDataSchema
targetMetaDataHints
The HTTP section would still clearly map the metadata fields to headers.
Thoughts, anyone? @philsturgeon @dlax @mokkabonna ?
The text was updated successfully, but these errors were encountered: