sphinx-needs
sphinx-needs copied to clipboard
needs.json schema? How are links stored?
Is it currently correct to store custom link options of a need flat, e.g.
"ACTIVITY_ThisAndThat": {
"description": "",
"id": "ACTIVITY_ThisAndThat",
"implements": [],
"has_in_port": ["...", ...],
"has_out_port": ["...", ...],
"instantiates": ["...", ...]
},
or nested below "links", like this:
"ACTIVITY_ThisAndThat": {
"description": "",
"id": "ACTIVITY_ThisAndThat",
"implements": [],
"links": {
"has_in_port": "...,...",
"has_out_port": "...",
"instantiates": "...",
},
}
I could not find anything in the docs. I'm writing a needs.json generator right now, so I needs to know :laughing:
The first one is correct, so it's just a "flat" dictionary.
I think this can be closed with #1230