Check whether sub is a sub API of api.
Equations
IsSubAPI sub api = AllIsElem (EndpointsList sub) api
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11
Moduleservant-openapi3-2.1.0.0Haskell2010
Useful type families for servant APIs.
Check whether sub is a sub API of api.
IsSubAPI sub api = AllIsElem (EndpointsList sub) apiBuild a list of endpoints from an API.
EndpointsList (a :<|> b) = AppendList (EndpointsList a) (EndpointsList b)EndpointsList (e :> a) = MapSub e (EndpointsList a)EndpointsList (NamedRoutes api) = EndpointsList (ToServantApi api)EndpointsList a = '[a]Extract a list of unique "body" types for a specific content-type from a servant API.