Skip to content

api-gateway merchant settings tests don't cover invalid business data #552

Description

@therealjhay

Problemmerchant-settings.test.ts covers happy paths; invalid names/emails/address formats pass through to the DB.

  1. No format validation on settings.
  2. XSS-able free-text fields unescaped at API.
  3. No length caps.

Solution

  • Validate settings fields (length, format).
  • Escape/neutralize free text.
  • Test invalid settings.

Acceptance Criteria

  • Invalid settings rejected.
  • Free text bounded.
  • pnpm --filter api-gateway build passes.

Note for Contributors: Write a clear PR description. Show an invalid-settings rejection.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions