metosin / metosin/compojure-api
Add {:coercion :select-schema} option
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 1.1k
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Description
It would be incredibly handy to be able to filter out unwanted keys from an object based on the schema rather than reporting errors. I noticed the [select-schema](https://github.com/metosin/schema-tools/#select-schema ) function in schema-tools, but I'm not quite sure how to use that to create my own Coercion.
I might create a Coercion and submit a PR if someone can guide me in how to do it.
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 by reading schema-tools' select-schema documentation and the repository's Coercion entry points. Determine how a :coercion :select-schema option should filter keys against the schema rather than report errors. Done means the option is available and its filtering behavior is covered by the relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100