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 similar target 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
There are
hrefSchema,targetSchema,submissionSchemaand own/this{"$ref": "#"}//in draft-07 notationhrefis rather clear - more-like HTTP specific channel. While 'target' mostly describes output/return -Event.target,HTMLElement.target,:targetvsProxy.target.With hyper-media#HTTP, hyper-media#examples, from draft-04 to draft-07 I tried to produce all desired type notation but got lost.
() => this- for"rel": "next"and similartargetis not specified() => target(this) => void(this) => target(target) => void(target) => this(this) => void(submission) => target(submission) => this(this | target) => this | voidWhat points are wrong and what have I lost?
BTW Why links are
array? I expected same as$defs- 'keyed' schema collection