Skip to content

Possible regression of handling of empty strings #750

Closed
@dbussink

Description

@dbussink

There seems to be a change / regression in updating from 0.5.20 to 0.7.0 around the behavior of how empty strings are treated. We're seeing an error like this:

 {"code":"invalid_params","message":"Invalid parameter 'notes' value nil: Must be a String"}

The notes parameter here is a string, but it's optional. But when an explicit empty string value is passed in, we get the above error that the value is seen as nil. What we post looks like:

params: { notes: "" }

I've been looking through the release notes and I can't really find anything that indicates this is a deliberate change or not. Also that it treats it as nil instead of the empty string seems a bit confusing in the error message here.

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