Closed lvps closed 2 years ago
@lvps Is it fine if we add a dedicated internal JSON dict in the root named info or something like that? Since the Tarallo already switches based on type.
The same would be valid for #129.
[
{
"type": "info",
"code": "101",
"owner": "giovannino"
},
{
"type": "I",
"features": {
...
"owner" is a feature.
For the top level item only (pc, motherboard, whatever) ask "Does this have a code already?" and let users enter it. In the GUI it could be asked among us... er, among the other questions, or at the end before upload, or somewhere near #129 or somewhere very different from that... It could be anywhere.
Also owner may be redundant if there's a code.
Then add the code to the big json to be uploaded. If no code is set, do not change the json in any way.