metosin / metosin/compojure-api
Handle Schema default values (was: How to compose parameters)
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 1.1k
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Description
I have a set of services with a common set of query parameters. What's the best way to reuse/compose their definition across a set of services? I've been playing with the GET\* and friends macro, learning about letk/plumbing, but can't see a way to make it happen at this level of the stack. Is it possible, and what am I missing?
It's entirely possible I'm thinking about this problem incorrectly, so open to feedback on that as well.
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 tracing the GET* macros and the letk/plumbing layer to determine where shared query-parameter definitions and Schema default values are handled. Done means the supported composition and default-value behavior are defined and verified for the affected API declarations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100