xref: /openbmc/bmcweb/scripts/csdl-to-json-converter/README.md (revision 99da8c8ef1579a38dc8934792eaae4a5a977dfbd)
1cef8cf9aSEd Tanous# Generating Json schema for OEM schemas
2cef8cf9aSEd Tanous
3cef8cf9aSEd TanousThe config in this directory is for utilizing the DMTF json generation script
4cef8cf9aSEd Tanouslocated at [1]
5cef8cf9aSEd Tanous
6cef8cf9aSEd TanousTo update the config files, run the following command, updating the paths to be
7cef8cf9aSEd Tanouscorrect on your machine.
8cef8cf9aSEd Tanous
9ced552a9SGeorge Liu```bash
10cef8cf9aSEd Tanouspython3 ~/Redfish-Tools/csdl-to-json-convertor/csdl-to-json.py --input ~/bmcweb/redfish-core/schema/oem/openbmc/csdl --output ~/bmcweb/redfish-core/schema/oem/openbmc/json-schema --config ~/bmcweb/scripts/csdl-to-json-converter/csdl-to-json-convertor/openbmc-config.json
11cef8cf9aSEd Tanous```
12cef8cf9aSEd Tanous
13*99da8c8eSGeorge Liu[1]:
14cef8cf9aSEd Tanous  https://github.com/DMTF/Redfish-Tools/blob/main/csdl-to-json-convertor/csdl-to-json.py
15