summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2013-05-20 20:59:52 -0400
committerJulian Berman <Julian@GrayVines.com>2013-05-20 20:59:52 -0400
commit80aabffe116170b5b53d1629ec91283ecfbff609 (patch)
treee3f62b4c4232820729cd72e9ad1caa1903475f2b
parent6cee6a3fb7a7d8ecd8bd5f158c954759c5e93034 (diff)
downloadjsonschema-80aabffe116170b5b53d1629ec91283ecfbff609.tar.gz
Interdoc link.
-rw-r--r--docs/validate.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/validate.rst b/docs/validate.rst
index 4e6f80d..ac33802 100644
--- a/docs/validate.rst
+++ b/docs/validate.rst
@@ -181,12 +181,13 @@ given JSON type.
case and generality. For instance, JSON Schema defines a ``number`` type, which
can be validated with a schema such as ``{"type" : "number"}``. By default,
this will accept instances of Python :class:`number.Number`. This includes in
-particular :class:`int`\s and :class:`float`\s, along with `decimal.Decimal`
-objects, :class:`complex` numbers etc. For ``integer`` and ``object``, however,
-rather than checking for :class:`number.Integral` and
-:class:`collections.Mapping`, :mod:`jsonschema` simply checks for :class:`int`
-and :class:`dict`, since the former can introduce significant slowdown in these
-common cases.
+particular :class:`int`\s and :class:`float`\s, along with
+:class:`decimal.Decimal` objects, :class:`complex` numbers etc. For
+``integer`` and ``object``, however, rather than checking for
+:class:`number.Integral` and :class:`collections.Mapping`, :mod:`jsonschema`
+simply checks for :class:`int` and :class:`dict`, since the more general
+instance checks can introduce significant slowdown, especially given how common
+validating these types are.
If you *do* want the generality, or just want to add a few specific additional
types as being acceptible for a validator, :class:`IValidator`\s have a