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
Yes, me too, but there is no technical reasons it could not be supported? The default value should be inserted at server side, in case of not using Autowire on client side (third party client emulating the interface).
Strangely I found this comment in the code indicating that it should have worked:
* @param args Serialized arguments for the method that was called. Kept
* as a Map of arg-name -> serialized value. Values which
* exactly match the default value are omitted, and are
* simply re-constituted by the receiver.
When I try interfaces like this:
trait Protocol {
val dictionary: protocol.Dictionary
val userRegistry: protocol.UserRegistry
}
trait UserRegistry {
def createUser(newUser: User): User
def lookupFirstNamePart(firstname: String, exact: Boolean = false): Seq[User]
}
and an implementation like this:
override def lookupFirstNamePart(firstnamePart: String, exact: Boolean = false)
the compile fails at line:
val router = AutowireServer.routeProtocol
with error: "value lookupFirstNamePart$default$2 is not a member of io.widok.server.Controllers"
Am I doing something wrong, or is the macro magic missing support for default values?
The text was updated successfully, but these errors were encountered: