Skip to content

REQUEST: Add type validation and exceptions when MixpanelNameAttribute is assigned to a property with an incompatible type #17

@DanielCaspers

Description

@DanielCaspers

As I discovered in #16, it is possible to assign the attribute to a property which will not work for the special Mixpanel property it is supposed to be used for.

In my case, I was assigning a UtcDateTime to the Mixpanel time property, which requires as a long in the format of milliseconds since epoch. As the HTTP API doesn't warn of it being malformed, I feel it would be a helpful improvement to this library to have an exception thrown when these types are mismatched.

Thank you for all of the work you have into this library.

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