Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix namespaces in README #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 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 @@ -88,11 +88,11 @@ the non-optional tests, and all but two of the optional tests.
== Schemas

A schema is a Clojure map (or boolean) that should be augmented with
metadata by calling `juxt.jinx.schema/schema` on the schema data:
metadata by calling `juxt.jinx.alpha/schema` on the schema data:

[source,clojure]
----
(juxt.jinx.schema/schema {"type" "object"})
(jinx/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