Skip to content

Support default parameters #55

@stanch

Description

@stanch

I am not sure if it’s possible, but would be great if spray-json supported case classes with some of the parameters having default values. What I mean is if we have

case class Test(a: Int = 3, b: Int)

then

{"b": 4}

should deserialize into

Test(3, 4)

instead of failing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions