rroodll / QB-Estimate-Reporting

Management and reporting of resource estimates for quantum algorithms
MIT License
0 stars 0 forks source link

RE Schema as Standalone JSON File #2

Open ccoffrin opened 5 months ago

ccoffrin commented 5 months ago

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.

rroodll commented 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

ccoffrin commented 5 months ago

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

rroodll commented 5 months ago

@elenewski I believe this is more a decision for you than me.

rroodll commented 5 months ago

Going to add this as requested as time allows