Schema Extractor is a Python tool that extracts schemas from JSON files and generates new schema files in a specific format.
-
Ensure you have the JSON data files in the
./data/
directory. Each data file should have a key"message"
containing the required schema objects. -
Open the
main.py
file and change the file paths (self.first_file
andself.second_file
) to point to the correct JSON data files. -
Run the
main.py
script to extract schemas and generate new schema files: