Skip to content

self link inconsistency #1159

@tadast

Description

@tadast

The spec says that a link can be either a string or an object.

However the schema enforces that self links must be strings.

(It is also a bit odd that the properties and descriptions in definitions/links seems to be relationship-specific, but this definition is referenced from resource and top level link objects.)

I was wondering if the self links are an exception and must be strings intentionally, or is it a bug in the schema? If it's the latter I'd be happy to open a PR to fix the schema.

Sample use case: on a project I'm working on we prefer links as objects v.s. links. We have a convention to pass extra meta data for each link e.g. request header, http verb (GET/PUT/POST) and so on. However the schema validations fail if a resource selflink is an object, even though there doesn't seem to be anything in the documentation that makes self links exceptional.

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy