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).
Hello!
Have you considered supporting servant-pagination?
From the Servant pagination recipe, one needs to manually write these 3 instances:
and I am thinking that this library (or maybe a new library
servant-openapi-pagination?) could provide support (defaultGenericinstances? Or just default instance for basic types likeInt,Text, etc.? I haven't thought about that in detail).