Skip to content

Support servant-paginationΒ #45

@sir4ur0n

Description

@sir4ur0n

Hello!

Have you considered supporting servant-pagination?

From the Servant pagination recipe, one needs to manually write these 3 instances:

instance ToParamSchema (Ranges '["name"] Color) where
  toParamSchema _ = -- ?

instance ToParamSchema (ContentRange '["name"] Color) where
  toParamSchema _ = -- ?

instance ToParamSchema (AcceptRanges '["name"]) where
  toParamSchema _ = -- ?

and I am thinking that this library (or maybe a new library servant-openapi-pagination?) could provide support (default Generic instances? Or just default instance for basic types like Int, Text, etc.? I haven't thought about that in detail).

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