Readme, help: clarify console call and input is filename a bit
This commit is contained in:
@@ -35,6 +35,11 @@ for Python (supporting 2.7+ including Python 3).
|
|||||||
...
|
...
|
||||||
ValidationError: 'Invalid' is not of type 'number'
|
ValidationError: 'Invalid' is not of type 'number'
|
||||||
|
|
||||||
|
It can also be used from console:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ jsonschema -i sample.json sample.schema
|
||||||
|
|
||||||
Features
|
Features
|
||||||
--------
|
--------
|
||||||
|
@@ -26,8 +26,8 @@ parser.add_argument(
|
|||||||
action="append",
|
action="append",
|
||||||
dest="instances",
|
dest="instances",
|
||||||
type=_json_file,
|
type=_json_file,
|
||||||
help="a path to a JSON instance to validate "
|
help="a path to a JSON instance (i.e. filename.json)"
|
||||||
"(may be specified multiple times)",
|
"to validate (may be specified multiple times)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-F", "--error-format",
|
"-F", "--error-format",
|
||||||
@@ -45,7 +45,7 @@ parser.add_argument(
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"schema",
|
"schema",
|
||||||
help="the JSON Schema to validate with",
|
help="the JSON Schema to validate with (i.e. filename.schema)",
|
||||||
type=_json_file,
|
type=_json_file,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user