Skip to content

Commit

Permalink
Add short option to --set-additional-properties-false-everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
odscjames committed Oct 5, 2018
1 parent d93fa88 commit b956da9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions compiletojsonschema/cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def main():

parser.add_argument('input_file')
parser.add_argument(
"-s",
"--set-additional-properties-false-everywhere",
action='store_true',
help="Set Additional Properties False everywhere? This generates strict schemas that can be used for testing.")
Expand Down
3 changes: 2 additions & 1 deletion docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ The output is printed. To save the output to file, simple redirect it:
Set additional properties false everywhere
------------------------------------------

To enable this mode, pass the `--set-additional-properties-false-everywhere` flag.
To enable this mode, pass the `--set-additional-properties-false-everywhere` or `-s` flag.


.. code-block:: shell-session
compiletojsonschema -s input.json
compiletojsonschema --set-additional-properties-false-everywhere input.json

0 comments on commit b956da9

Please sign in to comment.