Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ring-clojure/ring-spec
Clojure specs for Ring
https://github.com/ring-clojure/ring-spec
clojure ring spec
Last synced: 3 months ago
JSON representation
Clojure specs for Ring
- Host: GitHub
- URL: https://github.com/ring-clojure/ring-spec
- Owner: ring-clojure
- Created: 2016-09-19T00:34:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-09T17:12:45.000Z (over 5 years ago)
- Last Synced: 2024-05-08T19:03:04.819Z (9 months ago)
- Topics: clojure, ring, spec
- Language: Clojure
- Homepage:
- Size: 18.6 KB
- Stars: 50
- Watchers: 4
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ring-Spec
A library for [Ring][] that contains [specs][] for requests, responses
and handlers.[ring]: https://github.com/ring-clojure/ring
[specs]: http://clojure.org/about/spec## Installation
Add the following dependency to your project file:
```clojure
[ring/ring-spec "0.0.4"]
```## Usage
This library exposes the following specs:
* `:ring/request`
* `:ring/response`
* `:ring/handler`These can be used to validate requests, responses and handler
functions respectively.The request and response specs also have generators associated with
them, allowing valid Ring requests and responses to be generated for
use with [test.check][].[test.check]: https://github.com/clojure/test.check
## License
Copyright © 2018 James Reeves
Distributed under the MIT License, the same as Ring.