Closed InRe-Dan closed 2 months ago
Bom field in pcbdata is generated from your input and config, it is intentionally not in the json schema.
To have a DNP component you just have to add an extra field "dnp": "true" and then use that field with --dnp-field=dnp
on command line.
https://github.com/openscopeproject/InteractiveHtmlBom/blob/2b8dfa665e2ae43fd47efbf38d0708cbab2a5413/InteractiveHtmlBom/ecad/schema/genericjsonpcbdata_v1.schema#L48
Brilliant, thank you so much.
It doesn't look like I can define a DNP component using a JSON file and the
generate_interactive_bom.py
script.DATAFORMAT.md
implies that there can be abom
field on thepcbdata
struct, but if I add such a field, the script gives me errors (fair enough - the schema doesn't define anything to do withbom
or DNP components as far as I can tell). Theconfig
struct inDATAFORMAT.md
also doesn't seem to be something that I can define in the JSON either.What am I missing here? Or are these features not supported via the script?