Skip to content

Macros should find the default values #21

@Methrat0n

Description

@Methrat0n

Bug

final case class User(username: String = "Methrat0n")

object User {
 implicit val schema: Schema[User] = Schema.of[User]
}

Should be equivalent to

final case class User(username: String = "Methrat0n")

object User {
 implicit val schema: Schema[User] =
   "username".as[String].defaultTo("Methrat0n")
}

The same goes for the other macro modes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions