Skip to content

fix: validate, limit, and escape merchant settings business data (#552) - #583

Open
Preciousuche wants to merge 1 commit into
Betta-Pay:mainfrom
Preciousuche:fix/552-merchant-settings-validation
Open

fix: validate, limit, and escape merchant settings business data (#552)#583
Preciousuche wants to merge 1 commit into
Betta-Pay:mainfrom
Preciousuche:fix/552-merchant-settings-validation

Conversation

@Preciousuche

Copy link
Copy Markdown

Adds length boundaries and validation constraints to the merchant settings business data fields inside Zod schemas (businessName, supportEmail, supportAddress, and tier). Additionally, implements an HTML escaping filter for free-text fields to automatically sanitize inputs and neutralize potential XSS payloads. Integration and unit tests are included.

Closes #552

@therealjhay

Copy link
Copy Markdown
Contributor

kindly resolve conflict

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants