Skip to content

Conversation

@handrews
Copy link
Contributor

This mostly involves explaining that hyper-schema is not a system
for executing requests and processing response. It informs a
user agent how to construct various requests, and is used to
interpret whatever response (expected, error, whatever) is returned.

Also define "operation" up front as I keep forgetting where it's defined
and not being sure whether it was defined recently enough in the spec
for a reader to have noticed and remembered.

This is groundwork for better advice on HTTP, and is intended to provide
context around how hyper-schema systems should work with requests
and responses that is non-HTTP-specific. The HTTP section will then
apply HTTP methods, headers, etc. to this conceptual framework
to illustrate how HTTP should be used with hyper-schema LDOs.

@handrews handrews added this to the draft-07 (wright-*-02) milestone Oct 19, 2017
@handrews handrews requested review from dlax and philsturgeon October 19, 2017 22:43
@handrews
Copy link
Contributor Author

@vasilakisfil here is another PR on top of the rewrite that is probably relevant to your interests, although may make more sense once I submit the companion PR updating the HTTP section to match this.

</t>
<t>
Requests that take a target representation as a payload SHOULD use the
"targetSchema" and "targetMediaTYpe" keywords for input description and

Choose a reason for hiding this comment

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

Small typo here on "targetMediaTYpe"

@vasilakisfil
Copy link

Thanks! This is very helpful section actually that clearly explains the uses of targetSchema and submissionSchema!

@handrews
Copy link
Contributor Author

Based on the positive feedback so far, and given that this does not change implementation requirements, I'm going to go ahead and merge this so it can be part of the "final review" announcement.

This does not in any way lock in these changes, and feedback and suggestions for a better approach are still very much wanted and appreciated.

@handrews handrews changed the base branch from rewrite to master October 20, 2017 19:16
This mostly involves explaining that hyper-schema is not a system
for executing requests and processing response.  It informs a
user agent how to construct various requests, and is used to
interpret whatever response (expected, error, whatever) is returned.
@handrews handrews merged commit 0c48470 into json-schema-org:master Oct 20, 2017
@handrews handrews deleted the req-resp branch October 20, 2017 19:26
Copy link
Member

@dlax dlax left a comment

Choose a reason for hiding this comment

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

While certainly useful, this addition is a bit verbose I think. So just mentioning which paragraphs could be removed to gain a bit of conciseness.

<t>
RPC systems that pipe many application operations with arbitrarily different
request structures through a single hypermedia protocol operation are outside
of the scope of a hypermedia format such as JSON Hyper-Schema.
Copy link
Member

Choose a reason for hiding this comment

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

I find this paragraph is more confusing than helpful.

<t>
User agents are expected to understand protocol status codes and response
media types well enough to handle common situations, and provide enough
information to client applications to handle domain-specific responses.
Copy link
Member

Choose a reason for hiding this comment

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

This paragraph also seems superfluous.

@gregsdennis gregsdennis added clarification Items that need to be clarified in the specification and removed Type: Maintenance labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clarification Items that need to be clarified in the specification Priority: Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants