-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
66 additions
and
6 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
resources/clj-kondo/clj-kondo.exports/metosin/malli/config.edn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{:lint-as {malli.experimental/defn schema.core/defn} | ||
{:lint-as {malli.experimental/defn schema.core/defn | ||
malli.experimental/def schema.core/def} | ||
:linters {:unresolved-symbol {:exclude [(malli.core/=>)]}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
(ns demo | ||
(:require [malli.experimental :as mx] | ||
[malli.provider :as mp])) | ||
|
||
;; pull schema from example | ||
(def Config | ||
(mp/provide | ||
[{:port 8080 | ||
:host "127.0.0.1" | ||
:db {:adapter "postgresql" | ||
:username "example" | ||
:password "example" | ||
:server-name "localhost" | ||
:port-number 5432 | ||
:database-name "example"}}])) | ||
|
||
;; fail fast | ||
(mx/def config :- Config | ||
{:port "8080" | ||
:host "127.0.0.1" | ||
:db {:adapter "postgresql" | ||
:username "example" | ||
:password "example" | ||
:server-name "localhost" | ||
:port-number "5432" | ||
:database-name :example}}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters