Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pagination example in hyper-schema #465

Closed
Assignees
Labels
Priority: High clarificationItems that need to be clarified in the specification
Milestone
@dlax

Description

In #448, a paginated collection example got added, with pagination handled using hyperschema links. This makes example fairly complicated, especially (I think) because the "thing-collection" schema is an object with metadata to hold pagination information instead of a plain array.

For some context on the initial discussion with @handrews and @philsturgeon, see #448 (comment).

Quoting @handrews #448 (comment)

Collections that are filterable or paginated/scrolling are unmanageable under hyper-schema without meta-data, and showing a "collection" that can't be filtered or paginated is not realistic.

I would don't see a compelling reason to use hyper-schema to handle pagination. In the "thing-collection" is a plain array, prev/next links could be HTTP Link headers I think. Maybe this design is less sophisticated, but I think it does the job.

Metadata

Metadata

Labels

Priority: High clarificationItems that need to be clarified in the specification

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    AltStyle によって変換されたページ (->オリジナル) /