Skip to content

Add helper for coercing empty string query params to undefined #379

@Chucks1093

Description

@Chucks1093

Summary
Query parameters sent as empty strings such as search= are currently treated differently from omitted parameters, causing inconsistent filter behavior. A helper that coerces empty string values to undefined before validation ensures both forms are handled identically.

Scope

  • add a helper that converts empty string query param values to undefined
  • apply the helper before the query validation step for creator list and creator detail endpoints
  • add a unit test confirming empty string and omitted params produce the same normalized result

Acceptance Criteria

  • empty string query params are treated the same as omitted params after normalization
  • a unit test confirms the coercion for at least three different param names
  • non-empty string values are unaffected by the helper

Contributor coordination: if you pick this up, reach out in Telegram for updates or clarification: https://t.me/accesslayerorg

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions