Skip to content

feat: Support default values in Route data classes #23

@angryPodo

Description

@angryPodo

Wisp ignores default values in data classes.
If I have val id: Int = 0, and the URL doesn't have id, it crashes or passes null instead of using 0.

To-Do:

  • Check hasDefault in KSP processor.
  • If value is missing in URL but has default, skip passing the argument to constructor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions