File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
schema/src/main/scala/io/shiftleft/codepropertygraph/schema Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,23 @@ object Finding extends SchemaBase {
5454 .protoId(ProtoIds .KeyValuePair )
5555 .addProperties(key, value)
5656
57- // node relations
57+ val evidenceDescription = builder
58+ .addProperty(
59+ name = " EVIDENCE_DESCRIPTION" ,
60+ valueType = ValueType .String ,
61+ comment =
62+ """ Optional description for nodes in evidence. Used to give a hint about the kind of evidence
63+ |provided by a node. The evidence description and evidence nodes are associated by index.
64+ |""" .stripMargin
65+ )
66+ .asList
67+ .protoId(ProtoIds .EvidenceDescription )
68+
69+ // node relations
5870 finding
5971 .addContainedNode(builder.anyNode, " evidence" , Cardinality .List )
6072 .addContainedNode(keyValuePair, " keyValuePairs" , Cardinality .List )
61-
73+ .addProperty(evidenceDescription)
6274// constants
6375
6476 }
Original file line number Diff line number Diff line change @@ -171,4 +171,5 @@ object ProtoIds {
171171 val FieldIdentifier = 2001081
172172 val CanonicalName = 2001092
173173 val ContainedRef = 2007161
174+ val EvidenceDescription = 2007162
174175}
You can’t perform that action at this time.
0 commit comments