diff options
author | Julian Berman <Julian@GrayVines.com> | 2019-01-27 15:55:27 -0500 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2019-01-27 15:55:27 -0500 |
commit | ff490fbf82120c8423a4663555c57ec6e0ee6e81 (patch) | |
tree | fb8f568171f8682ef4e55ad4b59fe78deb93a3e0 /docs/index.rst | |
parent | 9b8e1d39320b2c6edafc78164897d086dfb041a2 (diff) | |
download | jsonschema-ff490fbf82120c8423a4663555c57ec6e0ee6e81.tar.gz |
Show examples more like what I actually recommend.
Diffstat (limited to 'docs/index.rst')
-rw-r--r-- | docs/index.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/index.rst b/docs/index.rst index 191049b..1fd4ba6 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -23,10 +23,10 @@ for Python (supporting 2.7+ including Python 3). ... } >>> # If no exception is raised by validate(), the instance is valid. - >>> validate({"name" : "Eggs", "price" : 34.99}, schema) + >>> validate(instance={"name" : "Eggs", "price" : 34.99}, schema=schema) >>> validate( - ... {"name" : "Eggs", "price" : "Invalid"}, schema + ... instance={"name" : "Eggs", "price" : "Invalid"}, schema=schema, ... ) # doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... |