spacebarchat / spacebarchat/server
[webhooks] Make NameValidation.ts throw field errors rather than HTTPErrors
Open
Beginner friendly
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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