Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eval/malli-select
spec2-inspired selection of Malli-schemas
https://github.com/eval/malli-select
clojure clojure-spec malli
Last synced: about 2 months ago
JSON representation
spec2-inspired selection of Malli-schemas
- Host: GitHub
- URL: https://github.com/eval/malli-select
- Owner: eval
- License: mit
- Created: 2023-09-19T10:24:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-17T11:10:11.000Z (12 months ago)
- Last Synced: 2024-09-18T23:28:55.961Z (4 months ago)
- Topics: clojure, clojure-spec, malli
- Language: Clojure
- Homepage:
- Size: 53.7 KB
- Stars: 32
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# malli-select
[![Clojars Project](https://img.shields.io/clojars/v/dk.thinkcreate/malli-select.svg?include_prereleases)](https://clojars.org/dk.thinkcreate/malli-select) [![cljdoc badge](https://cljdoc.org/badge/dk.thinkcreate/malli-select)](https://cljdoc.org/d/dk.thinkcreate/malli-select)
Create subschemas of [malli](https://github.com/metosin/malli)-schemas using a spec2-inspired select notation.
It's based on Rich Hickey's ideas from his talk ["Maybe Not"](https://youtu.be/YR5WdGrpoug?feature=shared&t=1965) about how [spec-alpha2](https://github.com/clojure/spec-alpha2) might allow for schema reuse.
## Quickstart
[deps-try](https://github.com/eval/deps-try/blob/master/README.md#installation) has a built-in recipe that walks you through malli-select's features on the REPL ([recipe source](https://github.com/eval/deps-try/blob/master/recipes/malli/malli_select.clj)).
Run like so:
``` clojure
$ deps-try --recipe malli/malli-select
```See [the tests](./test/malli_select/core_test.clj) for more.
## LICENSE
Copyright (c) 2023 Gert Goet, ThinkCreate.
Distributed under the MIT license. See [LICENSE](LICENSE).