Skip to content

Clarify/Document Params parsing behavior #641

Open
@tomusdrw

Description

@tomusdrw

Follow up on the discussion in #640 (comment)

The clue is to clarify how we want the method implementation generated by derive to behave in case optional parameters are present.

Different cases:

  1. Positional parameters expected but there is no parameters or all parameters are optional.
  2. Named parameters expected but there is no parameters or all parameters are optional.
  3. Raw parameters expected.

The last case is simple - we simply let the user implementation to decide what to do. In case of (1) & (2) we need to clarify what kind of params are going to be accepted (empty array, empty object or Params::None).

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