how to unset a string field when it's an empty string
Open
- Dominant language
- JavaScript
- Stars
- 21.2k
- Forks
- 1.5k
- Avg merge
- 4h 57m
- Merged PRs (30d)
- 14
Description
For example, b is empty string filed
```
{
a: 'a',
b: ''
}
```
after validating , convert to an object which filed b is deleted
```
{
a: 'a'
}
```
Contributor guide
Research direction
No file, test, or entry point is named in the issue. Start by locating Joi's validation and conversion entry points and reproduce the empty-string case; done means validation returns an object with b omitted while preserving a.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100