Skip to content

Commit

Permalink
[WIP] Woops, short-desc is a assembly, not field!
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-nist committed Feb 20, 2024
1 parent 53a2ab4 commit a7fa0aa
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions schema/metaschema/sarif_metaschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
<formal-name>Short Description</formal-name>
<description>A text-based short-description for a rule.</description>
<model>
<define-field name="text" as-type="markup-line"/>
<define-field name="text" as-type="markup-line" min-occurs="1" max-occurs="1">
<formal-name>Short Description Text</formal-name>
<description>The short text of the description.</description>
</define-field>
</model>
</define-assembly>
<define-field name="help-uri" as-type="uri" />
Expand All @@ -38,9 +41,9 @@
<description>A declaration of requirements with identifiers and descriptions for the tool generating results from analyzing artifacts.</description>
<model>
<define-field name="id"/>
<field ref="short-description">
<assembly ref="short-description">
<use-name>shortDescription</use-name>
</field>
</assembly>
<field ref="help-uri">
<use-name>helpUri</use-name>
</field>
Expand All @@ -55,7 +58,7 @@
<field ref="information-uri">
<use-name>informationUri</use-name>
</field>
<assembly ref="rule">
<assembly ref="rule" min-occurs="1" max-occurs="unbounded">
<group-as name="rules" in-json="ARRAY" />
</assembly>
</model>
Expand Down Expand Up @@ -85,7 +88,7 @@
</assembly>
<assembly ref="artifact" min-occurs="0" max-occurs="unbounded">
<group-as name="artifacts" in-json="ARRAY" />
</assembly>
</assembly>
</model>
</define-assembly>
<define-assembly name="root">
Expand All @@ -94,7 +97,7 @@
<root-name>root</root-name>
<model>
<field ref="version" min-occurs="1" max-occurs="1"/>
<assembly ref="run" min-occurs="0" max-occurs="unbounded">
<assembly ref="run" min-occurs="1" max-occurs="unbounded">
<group-as name="runs" in-json="ARRAY" />
</assembly>
</model>
Expand Down

0 comments on commit a7fa0aa

Please sign in to comment.