Skip to content

Commit

Permalink
Fix namespaces in README
Browse files Browse the repository at this point in the history
  • Loading branch information
john-shaffer committed Feb 9, 2022
1 parent 61600eb commit 6629134
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ the non-optional tests, and all but two of the optional tests.

[source,clojure]
----
(require '[juxt.jinx-alpha-2 :as jinx])
(require '[juxt.jinx.alpha :as jinx])
----

=== Create a schema
Expand Down Expand Up @@ -92,7 +92,7 @@ metadata by calling `juxt.jinx.schema/schema` on the schema data:

[source,clojure]
----
(juxt.jinx.schema/schema {"type" "object"})
(juxt.jinx.alpha.schema/schema {"type" "object"})
----

== Resolvers
Expand All @@ -101,11 +101,11 @@ Validation can take an optional options map.

The `:resolvers` entry should be a collection of resolvers.

* `:juxt.jinx.resolve/built-in` is the built-in resolver which will resolve schemas contained in the library, such as the draft7 meta-schema.
* `:juxt.jinx.alpha.resolve/built-in` is the built-in resolver which will resolve schemas contained in the library, such as the draft7 meta-schema.

* `:juxt.jinx.resolve/default-resolver` is a resolver which takes an argument of a map of URIs (or regexes) to values.
* `:juxt.jinx.alpha.resolve/default-resolver` is a resolver which takes an argument of a map of URIs (or regexes) to values.
+
A value can be a schema (which should be pre-processed with schema metadata by calling `juxt.jinx.schema/schema`).
A value can be a schema (which should be pre-processed with schema metadata by calling `juxt.jinx.alpha.schema/schema`).
+
A value may also be a function (called with the URI or, in the case of a regex, the result of the regex match):
+
Expand Down

0 comments on commit 6629134

Please sign in to comment.