-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define a reportingDescriptorReference object #324
Comments
introducing a microlanguage where the value of the DescriptorReference determines what the relative URI is relative to unnecessarily complicates things. Just use a prefix of ../.. to get to the tool object. |
I think eliminating the pointer all together, along with changing the descriptor arrays to an object with the keys being an the guid for the notification would be a better design. Then you just lookup the id in the driver and extensions for a match. |
Based on Jim's feedback, we propose to rework the reportingDescriptorReference as follows:
Notes:
|
Closing this issue. We will accept changes to this type in context of the open taxonomies proposal (where it is utilized). #314 |
Reopening, as other proposals don't clearly/comprehensively update the `reportingDescriptorReference' type. |
E-BALLOT #3 PROPOSALDefine a SCHEMA CHANGES
|
Approved in e-ballot-3. |
EBALLOT PROPOSAL. Define a reporting descriptor reference object that allows notifications to point into reporting metadata that may be persisted to the driver or any of its extensions or to the new taxonomies metadata.
API IMPACT
Schema only PR: microsoft/sarif-sdk#1316
reportingDescriptorReference
type with these properties.id
of typestring
: a notification identifierpointer
of typestring
: a JSON pointer that locates the descriptor for the notification with that identifier.reportingConfigurationOverride
object:notificationIndex
,ruleIndex
, andextensionIndex
properties.reportingDescriptorReference
property of typereportingDescriptorReference
, which specifies thereportingDescriptor
whose configuration is being overridden.notification
object:id
property.notificationDescriptorReference
property of typereportingDescriptorReference
.ruleId
andruleIndex
properties.associatedRuleDescriptorReference
property of typereportingDescriptorReference
, which locates the descriptor for the rule, if any, with which this notification is associated.invocation
object:reportingConfigurationOverrides
(which was defined to hold overrides for both rules and notifications) with separate propertiesruleConfigurationOverrides
andnotificationConfigurationOverrides
.result
objectruleIndex
andextensionIndex
properties.rulePointer
property of typestring
, containing a JSON pointer that locates the rule descriptor.EXAMPLE
NOTES
ruleDescriptors
array ornotificationDescriptors
array, as appropriate. That is, ifnotification.notificationDescriptorReference
is"driver/notificationDescriptors/42"
, it can be abbreviated to"42"
, and ifnotification.associatedRuleDescriptorReference
is"driver/ruleDescriptors/54"
, it can be abbreviated to"54"
.We do not replace
result.ruleId
andresult.rulePointer
with areportingDescriptorReference
in order to minimize churn in SARIF pre-release v2 producers.taxonomies
will also use this mechanism. That is covered in Define result taxonomies #314.The text was updated successfully, but these errors were encountered: