digitalbazaar / digitalbazaar/bedrock-validation
Consider adding configurable coerceTypes option
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 3
- Avg merge
- 17h 1m
- Merged PRs (30d)
- 1
Description
https://ajv.js.org/#coercing-data-types
https://github.com/digitalbazaar/bedrock-validation/blob/master/lib/index.js#L12
something like bedrock.config.validation.coerceTypes = true;
Contributor guide
No contributing guide indexed for this repository
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
Read the AJV coercing-data-types documentation and inspect lib/index.js around line 12, where validation is configured. Determine how bedrock.config.validation.coerceTypes should be passed through, then verify that setting it to true enables the intended coercion behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100