You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The *RequestPayload classes that are autogenerated by tapiro (introduced by #212) are named (CommandName)RequestPayload and are all placed in the same package.
As a result, if there are two different controllers that use the same command name (e.g. AController and BController both with @command create(...)), tapiro generates two classes CreateRequestPayload in the same package, and the code does not compile.
Solution: disambiguate the class names or, probably better, generate the classes inside object *TapirEndpoints so they are in different namespaces.
The
*RequestPayload
classes that are autogenerated by tapiro (introduced by #212) are named(CommandName)RequestPayload
and are all placed in the same package.As a result, if there are two different controllers that use the same command name (e.g.
AController
andBController
both with@command create(...)
), tapiro generates two classesCreateRequestPayload
in the same package, and the code does not compile.Solution: disambiguate the class names or, probably better, generate the classes inside
object *TapirEndpoints
so they are in different namespaces.cc @stefanosambruna
The text was updated successfully, but these errors were encountered: