Open
Description
There are hrefSchema
, targetSchema
, submissionSchema
and own/this
{"$ref": "#"}
//in draft-07 notation
href
is rather clear - more-like HTTP specific channel. While 'target' mostly describes output/return - Event.target
, HTMLElement.target
, :target
vs Proxy.target
.
"targetSchema" is used for requests and/or responses for several HTTP methods.
With hyper-media#HTTP, hyper-media#examples, from draft-04 to draft-07 I tried to produce all desired type notation but got lost.
- GET
() => this
- for"rel": "next"
and similartarget
is not specified - GET
() => target
- PUT
(this) => void
- PUT
(this) => target
- PATCH
(target) => void
- PATCH
(target) => this
- POST
(this) => void
- POST
(submission) => target
- POST
(submission) => this
- DELETE
(this | target) => this | void
What points are wrong and what have I lost?
BTW Why links are array
? I expected same as $defs
- 'keyed' schema collection
Metadata
Metadata
Assignees
Labels
No labels