This commit is Part 1 of the integration, where only the packages of this monorepo are touched.
Verb is redefined as an alias for MultiVerb1 in order to make the transition transparent to users of Verb.
MultiVerb is thus used instead of Verb for type family instances
This commit is Part 1 of the integration, where only the packages of this monorepo are touched.
Verb
is redefined as an alias forMultiVerb1
in order to make the transition transparent to users ofVerb
.Verb
for type family instancesCompared to the original implementation:
IsWaiBody
will not be able to live in its current form, as it mixes concepts from the Server and Client packages.SomeResponse
, which itself impacts theHasClient
andHasServer
instances.ResponseF
can be replicated internally, even without thehttpVersion
field.SomeResponse
can be kept on the server, but the client can move to useResponseF
.OpenAPI (and Swagger) support libraries will have such a definition
Where
method
is constrained to be anOpenApiMethod
. However the original implementation locks the type to be aStdMethod
In contrast,
Verb
's original definition kept themethod
polymorphic:This is a collaborative work between Scrive AB and Wire Swiss GmbH.