Open ccoffrin opened 5 months ago
Hi, It already is printed out as a json file that can be read. Check the data directory. Maybe we should change the name to make this more obvious. Will that work?
https://github.com/rroodll/QB-Estimate-Reporting/blob/main/data/fh_qsvt-128x1280-demo.json
I may be missing something but the file you reference is a data file that is compatible with the Schema. What I am suggesting is that the schema it self be a stand alone JSON file. Here is an example of what those look like, https://json-schema.org/learn/miscellaneous-examples#basic
@elenewski I believe this is more a decision for you than me.
Going to add this as requested as time allows
What do you think about moving the JSON Schema spec (https://github.com/rroodll/QB-Estimate-Reporting/blob/main/qb_reporting/resource_reporting.py) into a stand alone JSON file?
This file can then be read into other python workflows and other languages that have validation tools for JSON Schemas.