spacebarchat / spacebarchat/server

[webhooks] Make NameValidation.ts throw field errors rather than HTTPErrors

Open Beginner friendly
#1,664 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

javascript Module: API Priority:medium
Dominant language
TypeScript
Stars
2.2k
Forks
323
Avg merge
14h 48m
Merged PRs (30d)
4

Description

This way we could include an extra field that contains the blocked word, which can then be used by eg. bridge bots to strip those words when using webhooks

Contributor guide

Open the contributing guide

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 with NameValidation.ts and trace how name validation errors are returned for webhooks. Change the validation outcome so callers receive field errors rather than HTTP errors, including the blocked word in an extra field; done means bridge bots can read that field and strip the word.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.