Skip to content

Pagination Examples show incorrect targetUri #548

Closed
@sazzer

Description

@sazzer

In Section 9.5.1 of draft-handrews-json-schema-hyperschema-01 (https://tools.ietf.org/html/draft-handrews-json-schema-hyperschema-01#section-9.5.1), the example links are:

   [
       {
           "contextUri": "https://api.example.com/things",
           "contextPointer": "",
           "rel": "self",
           "targetUri":
               "https://api.example.com/things?offset=20,limit=2",
           "attachmentPointer": ""
       },
       {
           "contextUri": "https://api.example.com/things",
           "contextPointer": "",
           "rel": "next",
           "targetUri":
               "https://api.example.com/things?offset=22,limit=2",
           "attachmentPointer": ""
       }
   ]

Firstly, the querystring parameters should be & separated and not comma separated. Secondly, the actual values for offset are wrong. I think the values should really be:

   [
       {
           "contextUri": "https://api.example.com/things",
           "contextPointer": "",
           "rel": "self",
           "targetUri":
               "https://api.example.com/things?offset=0&limit=2",
           "attachmentPointer": ""
       },
       {
           "contextUri": "https://api.example.com/things",
           "contextPointer": "",
           "rel": "next",
           "targetUri":
               "https://api.example.com/things?offset=3&limit=2",
           "attachmentPointer": ""
       }
   ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions