{"id":15010355,"url":"https://github.com/pez/guardrails-malli-mini","last_synced_at":"2026-04-04T00:03:44.691Z","repository":{"id":230293885,"uuid":"779022317","full_name":"PEZ/guardrails-malli-mini","owner":"PEZ","description":"Using Guardrails with Malli, and the Guardrails registry from Malli","archived":false,"fork":false,"pushed_at":"2024-03-29T22:11:30.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-18T11:46:55.495Z","etag":null,"topics":["clojure","clojurescript","guardrails","malli"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PEZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-28T22:05:26.000Z","updated_at":"2024-03-28T22:07:52.000Z","dependencies_parsed_at":"2024-03-28T23:25:25.569Z","dependency_job_id":"366c2b73-e6f3-45a4-bb8c-f4df8f341a95","html_url":"https://github.com/PEZ/guardrails-malli-mini","commit_stats":null,"previous_names":["pez/guardrails-malli-mini"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PEZ%2Fguardrails-malli-mini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PEZ%2Fguardrails-malli-mini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PEZ%2Fguardrails-malli-mini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PEZ%2Fguardrails-malli-mini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PEZ","download_url":"https://codeload.github.com/PEZ/guardrails-malli-mini/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234643199,"owners_count":18865161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","clojurescript","guardrails","malli"],"created_at":"2024-09-24T19:33:40.449Z","updated_at":"2025-12-29T00:29:25.743Z","avatar_url":"https://github.com/PEZ.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Guardrails with Malli mini example\n\n* [Guardrails](https://github.com/fulcrologic/guardrails): Efficient, hassle-free function call validation with a concise inline syntax for clojure.spec and Malli\n* [Malli](https://github.com/metosin/malli): High-performance data-driven data specification library for Clojure/Script.\n\nThis super mini [Clojure](https://clojure.org) + [ClojureScript](https://clojurescript.org) project demonstrates:\n* How to use the declarative versions of `malli.util` transformation schemas with Guardrails\n* ~~How to use the Guardrails registry with regular Malli validation~~\n  * ~~NB: **This only seems to work if Guardrails is enabled.** See note in the source code.~~\n* A way to make Guardrails use a custom mutable Malli registry, as a way to share schemas between Guardrails and regular Malli validations.\n\nThe relevant code is in ~~[src/main/guarded.cljc](src/main/guarded.cljc)~~ [src/main/registry.cljc](src/main/registry.cljc). And in [src/main/guarded2.cljc](src/main/guarded2.cljc) there's code to try in both the Clojure and the ClojureScript REPL. With or without Guardrails enabled.\n\nNB: Guardrails is enabled via JVM opts in `deps.edn`. To disable it for shadow-cljs you need to remove the `:dev` alias from the `:deps` entry in `shadow-cljs`.\n\nHappy guarded coding! ❤️","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpez%2Fguardrails-malli-mini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpez%2Fguardrails-malli-mini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpez%2Fguardrails-malli-mini/lists"}