Skip to content

Warn when extra keys are dropped #7

@rafd

Description

@rafd

Currently, if a tada event is passed parameters with more keys than a spec defines, it silently drops those extra keys (using spec-tools' coercion). This is fine, because it helps avoid potential security issues (similar to how Rails controllers handle parameters). However, in development, this can be confusing.

Suggestion:

  • in development, return an appropriate anomaly and warning message for extra keys
  • consider whether the error message should be different in production

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