Skip to content

valid_address attribute is pointing to a enum that has string values but lob api returns boolean #269

Open
@rajubushanam

Description

@rajubushanam

Summary

valid_address attribute on the verification response is pointing to an enum that returns string values as "true" or "false". But the lob api actually returns this field as a boolean. This is not causing any bug in the response but when this enum is being used to compare against the returned value, the types don't match.

Expected Behavior

valid_address enum should be returning boolean values for both the True and False enums.

Current Behavior

valid_address attribute is defined as an enum that returns string values.

Possible Solution

Update the following enum to return true and false instead of string values - https://github.com/lob/lob-typescript-sdk/blob/main/models/us-verification.ts#L186

Steps to Reproduce

No direct bug in the response but pointing to the api docs that show valid_address as a boolean.

Context (Environment)

We are utilizing the enum UsVerificationValidAddressEnum in our code to compare against the value returned from the response and the types dont match. This is not a blocker for us because we can replace the enum check with a boolean, but it would be nice to use the enum if possible.

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