practicalli / practicalli/clojure
Spec for external data validation - rest API
Open
Nobody has claimed this yet.
spec
- Dominant language
- Makefile
- Stars
- 117
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
is it common to see spec used for external input validation?
You mean for things like REST API parameters? Or web form input parameters? We use it for that all the time.
(if (s/invalid? params)
(make-response (s/explain-data ::api/some-spec (:params req)))
(process params)))```
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
The issue names no file, test, or entry point. It asks whether Clojure spec is commonly used for REST API input validation and includes a conform/explain-data example; clarify the intended documentation change and acceptance criteria before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- api, documentation
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100