leguass7 / leguass7/brpix-api-node

feature: Tratamento de caracteres especiais e acentuação no QRCodePayload

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
TypeScript
Stars
7
Forks
1
PR merge metrics
No merged PRs in 30d

Description

No payload do QRCODE algumas propriedades no tipo string podem receber inputs do usuário, portanto é comum ter que tratar acentuação bem como caracteres especiais no texto.
Verifiquei que o PIX contendo letras com acentuação causa erro na leitura do QRCode por parte do aplicativo do pagador.

Seria interessante que a classe tratasse essas situações para impedir que o QRCodePayload seja construido com esses caracteres.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the QRCodePayload class and the code that constructs or validates its string properties. Check for existing tests around payload encoding or PIX QR codes. Done means accented and special-character inputs are handled so the resulting payload can be read by the payer's app, with tests covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.