Skip to content

Lack of LDO schemas use-cases or term 'target' is puzzling #14

Open
@askirmas

Description

@askirmas

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.

  1. GET () => this - for "rel": "next" and similar target is not specified
  2. GET () => target
  3. PUT (this) => void
  4. PUT (this) => target
  5. PATCH (target) => void
  6. PATCH (target) => this
  7. POST (this) => void
  8. POST (submission) => target
  9. POST (submission) => this
  10. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions