A Python program to generate JSON Schema from JSON data.
- Python 3.x
-
Clone the repository: git clone https://github.com/QueTeddy/json-schema.git
-
Install the required packages:
pip install -r requirements.txt
To generate a JSON schema from a JSON file, run the following command:
py main.py path/to/input.json path/to/output.json
Replace path/to/input.json
with the path to your input JSON file, and path/to/output.json
with the path to where you want to save the output JSON schema.
To run the unit tests, run the following command:
py test.py