-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
In Sphinx-Needs, we can define selector to define which needs are been covered by the schema.
For maintenance reasons it would be cool, if in a network analysis, these selector scripts can be used.
E.g. like in the example
Selector:
"select_asreq": {
"properties": {
"type": {
"const": "asreq"
}
}
},
"select_GROUP__requirements": {
"anyOf": [
{
"$ref": "#/$defs/select_sysreq"
},
{
"$ref": "#/$defs/select_swreq"
},
{
"$ref": "#/$defs/select_asreq"
}
]
},
In the schema:
{
"id": "schema_TYPE__test_specification",
"select": {
"$ref": "#/$defs/select_test_specification"
},
"validate": {
"local": {
"allOf": [
{
"$ref": "#/$defs/TYPE__test_specification"
}
],
"unevaluatedProperties": false
},
"network": {
"verifies": {
"contains": {
"local": {
"$ref": "#/$defs/select_GROUP__requirements"
}
},
"minContains": 0
}
}
}
},
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels