Skip to content

Safer attribute assignment #327

@brandur

Description

@brandur

When someone assigns to a StripeObject's attributes with an accessor:

account.email = ...

Or with a mass assignment:

account.update_attributes(
  email: ...
)

We should make an effort to determine that the property assigned is actually one that exists on the resource. This will prevent such problems as a buggy programs assigning to misspelled properties, and then only realizing the mistake much later.

This will probably be done via some kind of machine-readable API manifest as with the testing stubs in #243. Marking as "future".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions