practicalli / practicalli/clojure

Spec for external data validation - rest API

Open
#96 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.