Skip to content

Add integration test for creator holders endpoint returning 400 for invalid creator ID format #537

Description

@Chucks1093

Summary

The creator ID path param must be a positive integer. Non-numeric values, floats, and negative numbers should return 400 before any database query runs. An integration test should confirm this validation fires correctly.

Scope

  • Call GET /creators/:id/holders with: a non-numeric string, a float, a negative number, and zero
  • Assert each returns 400 with a descriptive error
  • Assert a valid positive integer proceeds to the database layer

Acceptance Criteria

  • Non-numeric string returns 400
  • Float returns 400
  • Negative number returns 400
  • Zero returns 400
  • Valid positive integer does not return 400 from validation

ETA: 12 hours


Coordinate on Telegram

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