Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
sarif_v_2_1_0_t.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063
(* Auto-generated from "sarif_v_2_1_0.atd" *) [@@@ocaml.warning "-27-32-33-35-39"] (** The MIME type (RFC 2045) of the artifact. *) type artifact_mimetype = string [@@deriving show,eq] (** ArtifactRolesItem *) type artifact_roles_item = [ `AnalysisTarget | `Attachment | `ResponseFile | `ResultFile | `StandardStream | `TracedFile | `Unmodified | `Modified | `Added | `Deleted | `Renamed | `Uncontrolled | `Driver | `Extension | `Translation | `Taxonomy | `Policy | `ReferencedOnCommandLine | `MemoryContents | `Directory | `UserSpecifiedConfiguration | `ToolSpecifiedConfiguration | `DebugOutputFile ] [@@deriving show,eq] (** A stable, unique identifier for this external properties object, in the form of a GUID. *) type external_properties_guid = string [@@deriving show,eq] (** A stable, unique identifier for the run associated with this external properties object, in the form of a GUID. *) type external_properties_run_guid = string [@@deriving show,eq] type external_properties_version = [ `TwoDotOneDotZero ] [@@deriving show,eq] type hm_str_str = (string * string) list [@@deriving show,eq] type int64 = Int64.t [@@deriving show,eq] (** A value specifying the severity level of the notification. *) type notification_level = [ `None | `Note | `Warning | `Error ] [@@deriving show,eq] (** Key/value pairs that provide additional information about the object. *) type property_bag = (string * Yojson.Safe.t) list [@@deriving show,eq] (** A physical or virtual address, or a range of addresses, in an 'addressable region' (memory or a binary file). *) type address = { absolute_address: int64 (** The address expressed as a byte offset from the start of the addressable region. *); fully_qualified_name: string option (** A human-readable fully qualified name that is associated with the address. *); index: int64 (** The index within run.addresses of the cached object for this address. *); kind: string option (** An open-ended string that identifies the address kind. 'data', 'function', 'header','instruction', 'module', 'page', 'section', 'segment', 'stack', 'stackFrame', 'table' are well-known values. *); length: int64 option (** The number of bytes in this range of addresses. *); name: string option (** A name that is associated with the address, e.g., '.text'. *); offset_from_parent: int64 option (** The byte offset of this address from the absolute or relative address of the parent object. *); parent_index: int64 (** The index within run.addresses of the parent object. *); properties: property_bag option (** Key/value pairs that provide additional information about the address. *); relative_address: int64 option (** The address expressed as a byte offset from the absolute address of the top-most parent object. *) } [@@deriving show,eq] (** A logical location of a construct that produced a result. *) type logical_location = { decorated_name: string option (** The machine-readable name for the logical location, such as a mangled function name provided by a C++ compiler that encodes calling convention, return type and other details along with the function name. *); fully_qualified_name: string option (** The human-readable fully qualified name of the logical location. *); index: int64 (** The index within the logical locations array. *); kind: string option (** The type of construct this logical location component refers to. Should be one of 'function', 'member', 'module', 'namespace', 'parameter', 'resource', 'returnType', 'type', 'variable', 'object', 'array', 'property', 'value', 'element', 'text', 'attribute', 'comment', 'declaration', 'dtd' or 'processingInstruction', if any of those accurately describe the construct. *); name: string option (** Identifies the construct in which the result occurred. For example, this property might contain the name of a class or a method. *); parent_index: int64 (** Identifies the index of the immediate parent of the construct in which the result was detected. For example, this property might point to a logical location that represents the namespace that holds a type. *); properties: property_bag option (** Key/value pairs that provide additional information about the logical location. *) } [@@deriving show,eq] (** Encapsulates a message intended to be read by the end user. *) type message = { arguments: string list option (** An array of strings to substitute into the message string. *); id: string option (** The identifier for this message. *); markdown: string option (** A Markdown message string. *); properties: property_bag option (** Key/value pairs that provide additional information about the message. *); text: string option (** A plain text message string. *) } [@@deriving show,eq] (** Specifies the location of an artifact. *) type artifact_location = { description: message option (** A short description of the artifact location. *); index: int64 (** The index within the run artifacts array of the artifact object associated with the artifact location. *); properties: property_bag option (** Key/value pairs that provide additional information about the artifact location. *); uri: string option (** A string containing a valid relative or absolute URI. *); uri_base_id: string option (** A string which indirectly specifies the absolute URI with respect to which a relative URI in the "uri" property is interpreted. *) } [@@deriving show,eq] (** Represents a directed edge in a graph. *) type edge = { id: string (** A string that uniquely identifies the edge within its graph. *); label: message option (** A short description of the edge. *); properties: property_bag option (** Key/value pairs that provide additional information about the edge. *); source_node_id: string (** Identifies the source node (the node at which the edge starts). *); target_node_id: string (** Identifies the target node (the node at which the edge ends). *) } [@@deriving show,eq] (** Information about the relation of one location to another. *) type location_relationship = { description: message option (** A description of the location relationship. *); kinds: string list option (** A set of distinct strings that categorize the relationship. Well-known kinds include 'includes', 'isIncludedBy' and 'relevant'. *); properties: property_bag option (** Key/value pairs that provide additional information about the location relationship. *); target: int64 (** A reference to the related location. *) } [@@deriving show,eq] (** A message string or message format string rendered in multiple formats. *) type multiformat_message_string = { markdown: string option (** A Markdown message string or format string. *); properties: property_bag option (** Key/value pairs that provide additional information about the message. *); text: string (** A plain text message string or format string. *) } [@@deriving show,eq] (** Represents the contents of an artifact. *) type artifact_content = { binary: string option (** MIME Base64-encoded content from a binary artifact, or from a text artifact in its original encoding. *); properties: property_bag option (** Key/value pairs that provide additional information about the artifact content. *); rendered: multiformat_message_string option (** An alternate rendered representation of the artifact (e.g., a decompiled representation of a binary region). *); text: string option (** UTF-8-encoded content from a text artifact. *) } [@@deriving show,eq] type hm_str_mms = (string * multiformat_message_string) list [@@deriving show,eq] (** Represents the traversal of a single edge during a graph traversal. *) type edge_traversal = { edge_id: string (** Identifies the edge being traversed. *); final_state: hm_str_mms option (** The values of relevant expressions after the edge has been traversed. *); message: message option (** A message to display to the user as the edge is traversed. *); properties: property_bag option (** Key/value pairs that provide additional information about the edge traversal. *); step_over_edge_count: int64 option (** The number of edge traversals necessary to return from a nested graph. *) } [@@deriving show,eq] type graph_traversal_variant0 = { description: message option (** A description of this graph traversal. *); edge_traversals: edge_traversal list option (** The sequences of edges traversed by this graph traversal. *); immutable_state: hm_str_mms option (** Values of relevant expressions at the start of the graph traversal that remain constant for the graph traversal. *); initial_state: hm_str_mms option (** Values of relevant expressions at the start of the graph traversal that may change during graph traversal. *); properties: property_bag option (** Key/value pairs that provide additional information about the graph traversal. *); result_graph_index: int64 (** The index within the result.graphs to be associated with the result. *); run_graph_index: int64 (** The index within the run.graphs to be associated with the result. *) } [@@deriving show,eq] type graph_traversal_variant1 = { description: message option (** A description of this graph traversal. *); edge_traversals: edge_traversal list option (** The sequences of edges traversed by this graph traversal. *); immutable_state: hm_str_mms option (** Values of relevant expressions at the start of the graph traversal that remain constant for the graph traversal. *); initial_state: hm_str_mms option (** Values of relevant expressions at the start of the graph traversal that may change during graph traversal. *); properties: property_bag option (** Key/value pairs that provide additional information about the graph traversal. *); result_graph_index: int64 (** The index within the result.graphs to be associated with the result. *); run_graph_index: int64 (** The index within the run.graphs to be associated with the result. *) } [@@deriving show,eq] (** Represents a path through a graph. *) type graph_traversal = [ `Variant0 of graph_traversal_variant0 | `Variant1 of graph_traversal_variant1 ] [@@deriving show,eq] (** An area within an image. *) type rectangle = { bottom: float option; left: float option; message: message option (** A message relevant to the rectangle. *); properties: property_bag option (** Key/value pairs that provide additional information about the rectangle. *); right: float option; top: float option } [@@deriving show,eq] (** A region within an artifact where a result was detected. *) type region = { byte_length: int64 option (** The length of the region in bytes. *); byte_offset: int64 (** The zero-based offset from the beginning of the artifact of the first byte in the region. *); char_length: int64 option (** The length of the region in characters. *); char_offset: int64 (** The zero-based offset from the beginning of the artifact of the first character in the region. *); end_column: int64 option (** The column number of the character following the end of the region. *); end_line: int64 option (** The line number of the last character in the region. *); message: message option (** A message relevant to the region. *); properties: property_bag option (** Key/value pairs that provide additional information about the region. *); snippet: artifact_content option (** The portion of the artifact contents within the specified region. *); source_language: string option (** Specifies the source language, if any, of the portion of the artifact specified by the region object. *); start_column: int64 option (** The column number of the first character in the region. *); start_line: int64 option (** The line number of the first character in the region. *) } [@@deriving show,eq] (** An artifact relevant to a result. *) type attachment = { artifact_location: artifact_location (** The location of the attachment. *); description: message option (** A message describing the role played by the attachment. *); properties: property_bag option (** Key/value pairs that provide additional information about the attachment. *); rectangles: rectangle list option (** An array of rectangles specifying areas of interest within the image. *); regions: region list option (** An array of regions of interest within the attachment. *) } [@@deriving show,eq] (** A physical location relevant to a result. Specifies a reference to a programming artifact together with a range of bytes or characters within that artifact. *) type physical_location = { address: address option (** The address of the location. *); artifact_location: artifact_location option (** The location of the artifact. *); context_region: region option (** Specifies a portion of the artifact that encloses the region. Allows a viewer to display additional context around the region. *); properties: property_bag option (** Key/value pairs that provide additional information about the physical location. *); region: region option (** Specifies a portion of the artifact. *) } [@@deriving show,eq] (** A location within a programming artifact. *) type location = { annotations: region list option (** A set of regions relevant to the location. *); id: int64 (** Value that distinguishes this location from all other locations within a single result object. *); logical_locations: logical_location list option (** The logical locations associated with the result. *); message: message option (** A message relevant to the location. *); physical_location: physical_location option (** Identifies the artifact and region. *); properties: property_bag option (** Key/value pairs that provide additional information about the location. *); relationships: location_relationship list option (** An array of objects that describe relationships between this location and others. *) } [@@deriving show,eq] (** The replacement of a single region of an artifact. *) type replacement = { deleted_region: region (** The region of the artifact to delete. *); inserted_content: artifact_content option (** The content to insert at the location specified by the 'deletedRegion' property. *); properties: property_bag option (** Key/value pairs that provide additional information about the replacement. *) } [@@deriving show,eq] (** A change to a single artifact. *) type artifact_change = { artifact_location: artifact_location (** The location of the artifact to change. *); properties: property_bag option (** Key/value pairs that provide additional information about the change. *); replacements: replacement list (** An array of replacement objects, each of which represents the replacement of a single region in a single artifact specified by 'artifactLocation'. *) } [@@deriving show,eq] (** A proposed fix for the problem represented by a result object. A fix specifies a set of artifacts to modify. For each artifact, it specifies a set of bytes to remove, and provides a set of new bytes to replace them. *) type fix = { artifact_changes: artifact_change list (** One or more artifact changes that comprise a fix for a result. *); description: message option (** A message that describes the proposed fix, enabling viewers to present the proposed change to an end user. *); properties: property_bag option (** Key/value pairs that provide additional information about the fix. *) } [@@deriving show,eq] (** Specifies the failure level for the report. *) type reporting_configuration_level = [ `None | `Note | `Warning | `Error ] [@@deriving show,eq] (** Information about a rule or notification that can be configured at runtime. *) type reporting_configuration = { enabled: bool (** Specifies whether the report may be produced during the scan. *); level: reporting_configuration_level option (** Specifies the failure level for the report. *); parameters: property_bag option (** Contains configuration information specific to a report. *); properties: property_bag option (** Key/value pairs that provide additional information about the reporting configuration. *); rank: int64 } [@@deriving show,eq] (** ReportingDescriptorDeprecatedGuidsItem *) type reporting_descriptor_deprecated_guids_item = string [@@deriving show,eq] (** A unique identifier for the reporting descriptor in the form of a GUID. *) type reporting_descriptor_guid = string [@@deriving show,eq] (** A guid that uniquely identifies the descriptor. *) type reporting_descriptor_reference_guid = string [@@deriving show,eq] (** The state of a result relative to a baseline of a previous run. *) type result_baseline_state = [ `New | `Unchanged | `Updated | `Absent ] [@@deriving show,eq] (** A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID. *) type result_correlation_guid = string [@@deriving show,eq] (** A stable, unique identifier for the result in the form of a GUID. *) type result_guid = string [@@deriving show,eq] (** A value that categorizes results by evaluation state. *) type result_kind = [ `NotApplicable | `Pass | `Fail | `Review | `Open | `Informational ] [@@deriving show,eq] (** A value specifying the severity level of the result. *) type result_level = [ `None | `Note | `Warning | `Error ] [@@deriving show,eq] (** A GUID-valued string equal to the automationDetails.guid property of the run in which the result was first detected. *) type result_provenance_first_detection_run_guid = string [@@deriving show,eq] (** A GUID-valued string equal to the automationDetails.guid property of the run in which the result was most recently detected. *) type result_provenance_last_detection_run_guid = string [@@deriving show,eq] (** Contains information about how and when a result was detected. *) type result_provenance = { conversion_sources: physical_location list option (** An array of physicalLocation objects which specify the portions of an analysis tool's output that a converter transformed into the result. *); first_detection_run_guid: result_provenance_first_detection_run_guid option (** A GUID-valued string equal to the automationDetails.guid property of the run in which the result was first detected. *); first_detection_time_utc: string option (** The Coordinated Universal Time (UTC) date and time at which the result was first detected. See "Date/time properties" in the SARIF spec for the required format. *); invocation_index: int64 (** The index within the run.invocations array of the invocation object which describes the tool invocation that detected the result. *); last_detection_run_guid: result_provenance_last_detection_run_guid option (** A GUID-valued string equal to the automationDetails.guid property of the run in which the result was most recently detected. *); last_detection_time_utc: string option (** The Coordinated Universal Time (UTC) date and time at which the result was most recently detected. See "Date/time properties" in the SARIF spec for the required format. *); properties: property_bag option (** Key/value pairs that provide additional information about the result. *) } [@@deriving show,eq] (** A function call within a stack trace. *) type stack_frame = { location: location option (** The location to which this stack frame refers. *); module_: string option (** The name of the module that contains the code of this stack frame. *); parameters: string list option (** The parameters of the call that is executing. *); properties: property_bag option (** Key/value pairs that provide additional information about the stack frame. *); thread_id: int64 option (** The thread identifier of the stack frame. *) } [@@deriving show,eq] (** A call stack that is relevant to a result. *) type stack = { frames: stack_frame list (** An array of stack frames that represents a sequence of calls, rendered in reverse chronological order, that comprise the call stack. *); message: message option (** A message relevant to this call stack. *); properties: property_bag option (** Key/value pairs that provide additional information about the stack. *) } [@@deriving show,eq] (** A stable, unique identifier for the suprression in the form of a GUID. *) type suppression_guid = string [@@deriving show,eq] (** A string that indicates where the suppression is persisted. *) type suppression_kind = [ `InSource | `External ] [@@deriving show,eq] (** A string that indicates the review status of the suppression. *) type suppression_status = [ `Accepted | `UnderReview | `Rejected ] [@@deriving show,eq] (** A suppression that is relevant to a result. *) type suppression = { guid: suppression_guid option (** A stable, unique identifier for the suprression in the form of a GUID. *); justification: string option (** A string representing the justification for the suppression. *); kind: suppression_kind (** A string that indicates where the suppression is persisted. *); location: location option (** Identifies the location associated with the suppression. *); properties: property_bag option (** Key/value pairs that provide additional information about the suppression. *); status: suppression_status option (** A string that indicates the review status of the suppression. *) } [@@deriving show,eq] (** Specifies the importance of this location in understanding the code flow in which it occurs. The order from most to least important is "essential", "important", "unimportant". Default: "important". *) type thread_flow_location_importance = [ `Important | `Essential | `Unimportant ] [@@deriving show,eq] (** ToolComponentContentsItem *) type tool_component_contents_item = [ `LocalizedData | `NonLocalizedData ] [@@deriving show,eq] (** The binary version of the tool component's primary executable file expressed as four non-negative integers separated by a period (for operating systems that express file versions in this way). *) type tool_component_dotted_quad_file_version = string [@@deriving show,eq] (** A unique identifier for the tool component in the form of a GUID. *) type tool_component_guid = string [@@deriving show,eq] (** The language of the messages emitted into the log file during this run (expressed as an ISO 639-1 two-letter lowercase language code) and an optional region (expressed as an ISO 3166-1 two-letter uppercase subculture code associated with a country or region). The casing is recommended but not required (in order for this data to conform to RFC5646). *) type tool_component_language = string [@@deriving show,eq] (** The 'guid' property of the referenced toolComponent. *) type tool_component_reference_guid = string [@@deriving show,eq] (** Identifies a particular toolComponent object, either the driver or an extension. *) type tool_component_reference = { guid: tool_component_reference_guid option (** The 'guid' property of the referenced toolComponent. *); index: int64 (** An index into the referenced toolComponent in tool.extensions. *); name: string option (** The 'name' property of the referenced toolComponent. *); properties: property_bag option (** Key/value pairs that provide additional information about the toolComponentReference. *) } [@@deriving show,eq] (** Information about how to locate a relevant reporting descriptor. *) type reporting_descriptor_reference = { guid: reporting_descriptor_reference_guid option (** A guid that uniquely identifies the descriptor. *); id: string option (** The id of the descriptor. *); index: int64 (** The index into an array of descriptors in toolComponent.ruleDescriptors, toolComponent.notificationDescriptors, or toolComponent.taxonomyDescriptors, depending on context. *); properties: property_bag option (** Key/value pairs that provide additional information about the reporting descriptor reference. *); tool_component: tool_component_reference option (** A reference used to locate the toolComponent associated with the descriptor. *) } [@@deriving show,eq] (** Information about how a specific rule or notification was reconfigured at runtime. *) type configuration_override = { configuration: reporting_configuration (** Specifies how the rule or notification was configured during the scan. *); descriptor: reporting_descriptor_reference (** A reference used to locate the descriptor whose configuration was overridden. *); properties: property_bag option (** Key/value pairs that provide additional information about the configuration override. *) } [@@deriving show,eq] (** Information about the relation of one reporting descriptor to another. *) type reporting_descriptor_relationship = { description: message option (** A description of the reporting descriptor relationship. *); kinds: string list option (** A set of distinct strings that categorize the relationship. Well-known kinds include 'canPrecede', 'canFollow', 'willPrecede', 'willFollow', 'superset', 'subset', 'equal', 'disjoint', 'relevant', and 'incomparable'. *); properties: property_bag option (** Key/value pairs that provide additional information about the reporting descriptor reference. *); target: reporting_descriptor_reference (** A reference to the related reporting descriptor. *) } [@@deriving show,eq] (** Metadata that describes a specific report produced by the tool, as part of the analysis it provides or its runtime reporting. *) type reporting_descriptor = { default_configuration: reporting_configuration option (** Default reporting configuration information. *); deprecated_guids: reporting_descriptor_deprecated_guids_item list option (** An array of unique identifies in the form of a GUID by which this report was known in some previous version of the analysis tool. *); deprecated_ids: string list option (** An array of stable, opaque identifiers by which this report was known in some previous version of the analysis tool. *); deprecated_names: string list option (** An array of readable identifiers by which this report was known in some previous version of the analysis tool. *); full_description: multiformat_message_string option (** A description of the report. Should, as far as possible, provide details sufficient to enable resolution of any problem indicated by the result. *); guid: reporting_descriptor_guid option (** A unique identifier for the reporting descriptor in the form of a GUID. *); help: multiformat_message_string option (** Provides the primary documentation for the report, useful when there is no online documentation. *); help_uri: string option (** A URI where the primary documentation for the report can be found. *); id: string (** A stable, opaque identifier for the report. *); message_strings: hm_str_mms option (** A set of name/value pairs with arbitrary names. Each value is a multiformatMessageString object, which holds message strings in plain text and (optionally) Markdown format. The strings can include placeholders, which can be used to construct a message in combination with an arbitrary number of additional string arguments. *); name: string option (** A report identifier that is understandable to an end user. *); properties: property_bag option (** Key/value pairs that provide additional information about the report. *); relationships: reporting_descriptor_relationship list option (** An array of objects that describe relationships between this reporting descriptor and others. *); short_description: multiformat_message_string option (** A concise description of the report. Should be a single sentence that is understandable when visible space is limited to a single line of text. *) } [@@deriving show,eq] (** Provides additional metadata related to translation. *) type translation_metadata = { download_uri: string option (** The absolute URI from which the translation metadata can be downloaded. *); full_description: multiformat_message_string option (** A comprehensive description of the translation metadata. *); full_name: string option (** The full name associated with the translation metadata. *); information_uri: string option (** The absolute URI from which information related to the translation metadata can be downloaded. *); name: string (** The name associated with the translation metadata. *); properties: property_bag option (** Key/value pairs that provide additional information about the translation metadata. *); short_description: multiformat_message_string option (** A brief description of the translation metadata. *) } [@@deriving show,eq] (** A component, such as a plug-in or the driver, of the analysis tool that was run. *) type tool_component = { associated_component: tool_component_reference option (** The component which is strongly associated with this component. For a translation, this refers to the component which has been translated. For an extension, this is the driver that provides the extension's plugin model. *); contents: tool_component_contents_item list option (** The kinds of data contained in this object. *); dotted_quad_file_version: tool_component_dotted_quad_file_version option (** The binary version of the tool component's primary executable file expressed as four non-negative integers separated by a period (for operating systems that express file versions in this way). *); download_uri: string option (** The absolute URI from which the tool component can be downloaded. *); full_description: multiformat_message_string option (** A comprehensive description of the tool component. *); full_name: string option (** The name of the tool component along with its version and any other useful identifying information, such as its locale. *); global_message_strings: hm_str_mms option (** A dictionary, each of whose keys is a resource identifier and each of whose values is a multiformatMessageString object, which holds message strings in plain text and (optionally) Markdown format. The strings can include placeholders, which can be used to construct a message in combination with an arbitrary number of additional string arguments. *); guid: tool_component_guid option (** A unique identifier for the tool component in the form of a GUID. *); information_uri: string option (** The absolute URI at which information about this version of the tool component can be found. *); is_comprehensive: bool (** Specifies whether this object contains a complete definition of the localizable and/or non-localizable data for this component, as opposed to including only data that is relevant to the results persisted to this log file. *); language: tool_component_language option (** The language of the messages emitted into the log file during this run (expressed as an ISO 639-1 two-letter lowercase language code) and an optional region (expressed as an ISO 3166-1 two-letter uppercase subculture code associated with a country or region). The casing is recommended but not required (in order for this data to conform to RFC5646). *); localized_data_semantic_version: string option (** The semantic version of the localized strings defined in this component; maintained by components that provide translations. *); locations: artifact_location list option (** An array of the artifactLocation objects associated with the tool component. *); minimum_required_localized_data_semantic_version: string option (** The minimum value of localizedDataSemanticVersion required in translations consumed by this component; used by components that consume translations. *); name: string (** The name of the tool component. *); notifications: reporting_descriptor list option (** An array of reportingDescriptor objects relevant to the notifications related to the configuration and runtime execution of the tool component. *); organization: string option (** The organization or company that produced the tool component. *); product: string option (** A product suite to which the tool component belongs. *); product_suite: string option (** A localizable string containing the name of the suite of products to which the tool component belongs. *); properties: property_bag option (** Key/value pairs that provide additional information about the tool component. *); release_date_utc: string option (** A string specifying the UTC date (and optionally, the time) of the component's release. *); rules: reporting_descriptor list option (** An array of reportingDescriptor objects relevant to the analysis performed by the tool component. *); semantic_version: string option (** The tool component version in the format specified by Semantic Versioning 2.0. *); short_description: multiformat_message_string option (** A brief description of the tool component. *); supported_taxonomies: tool_component_reference list option (** An array of toolComponentReference objects to declare the taxonomies supported by the tool component. *); taxa: reporting_descriptor list option (** An array of reportingDescriptor objects relevant to the definitions of both standalone and tool-defined taxonomies. *); translation_metadata: translation_metadata option (** Translation metadata, required for a translation, not populated by other component types. *); version: string option (** The tool component version, in whatever format the component natively provides. *) } [@@deriving show,eq] (** The analysis tool that was run. *) type tool = { driver: tool_component (** The analysis tool that was run. *); extensions: tool_component list option (** Tool extensions that contributed to or reconfigured the analysis tool that was run. *); properties: property_bag option (** Key/value pairs that provide additional information about the tool. *) } [@@deriving show,eq] (** Describes an HTTP request. *) type web_request = { body: artifact_content option (** The body of the request. *); headers: hm_str_str option (** The request headers. *); index: int64 (** The index within the run.webRequests array of the request object associated with this result. *); method_: string option (** The HTTP method. Well-known values are 'GET', 'PUT', 'POST', 'DELETE', 'PATCH', 'HEAD', 'OPTIONS', 'TRACE', 'CONNECT'. *); parameters: hm_str_str option (** The request parameters. *); properties: property_bag option (** Key/value pairs that provide additional information about the request. *); protocol: string option (** The request protocol. Example: 'http'. *); target: string option (** The target of the request. *); version: string option (** The request version. Example: '1.1'. *) } [@@deriving show,eq] (** Describes the response to an HTTP request. *) type web_response = { body: artifact_content option (** The body of the request. *); headers: hm_str_str option (** The request headers. *); index: int64 (** The index within the run.webRequests array of the request object associated with this result. *); no_response_received: bool (** Specifies whether a response was received from the server. *); properties: property_bag option (** Key/value pairs that provide additional information about the request. *); protocol: string option (** The request protocol. Example: 'http'. *); reason_phrase: string option (** The response reason. Example: 'Not found'. *); status_code: string option (** The response status code. Example: 451. *); version: string option (** The request version. Example: '1.1'. *) } [@@deriving show,eq] (** A location visited by an analysis tool while simulating or monitoring the execution of a program. *) type thread_flow_location = { execution_order: int64 (** An integer representing the temporal order in which execution reached this location. *); execution_time_utc: string option (** The Coordinated Universal Time (UTC) date and time at which this location was executed. *); importance: thread_flow_location_importance option (** Specifies the importance of this location in understanding the code flow in which it occurs. The order from most to least important is "essential", "important", "unimportant". Default: "important". *); index: int64 (** he index within the run threadFlowLocations array. *); kinds: string list option (** A set of distinct strings that categorize the thread flow location. Well-known kinds include 'acquire', 'release', 'enter', 'exit', 'call', 'return', 'branch', 'implicit', 'false', 'true', 'caution', 'danger', 'unknown', 'unreachable', 'taint', 'function', 'handler', 'lock', 'memory', 'resource', 'scope' and 'value'. *); location: location option (** The code location. *); module_: string option (** The name of the module that contains the code that is executing. *); nesting_level: int64 option (** An integer representing a containment hierarchy within the thread flow. *); properties: property_bag option (** Key/value pairs that provide additional information about the threadflow location. *); stack: stack option (** The call stack leading to this location. *); state: hm_str_mms option (** A dictionary, each of whose keys specifies a variable or expression, the associated value of which represents the variable or expression value. For an annotation of kind 'continuation', for example, this dictionary might hold the current assumed values of a set of global variables. *); taxa: reporting_descriptor_reference list option (** An array of references to rule or taxonomy reporting descriptors that are applicable to the thread flow location. *); web_request: web_request option (** A web request associated with this thread flow location. *); web_response: web_response option (** A web response associated with this thread flow location. *) } [@@deriving show,eq] (** Describes a sequence of code locations that specify a path through a single thread of execution such as an operating system or fiber. *) type thread_flow = { id: string option (** An string that uniquely identifies the threadFlow within the codeFlow in which it occurs. *); immutable_state: hm_str_mms option (** Values of relevant expressions at the start of the thread flow that remain constant. *); initial_state: hm_str_mms option (** Values of relevant expressions at the start of the thread flow that may change during thread flow execution. *); locations: thread_flow_location list (** A temporally ordered array of 'threadFlowLocation' objects, each of which describes a location visited by the tool while producing the result. *); message: message option (** A message relevant to the thread flow. *); properties: property_bag option (** Key/value pairs that provide additional information about the thread flow. *) } [@@deriving show,eq] (** A set of threadFlows which together describe a pattern of code execution relevant to detecting a result. *) type code_flow = { message: message option (** A message relevant to the code flow. *); properties: property_bag option (** Key/value pairs that provide additional information about the code flow. *); thread_flows: thread_flow list (** An array of one or more unique threadFlow objects, each of which describes the progress of a program through a thread of execution. *) } [@@deriving show,eq] (** Represents a node in a graph. *) type node = { children: node list option (** Array of child nodes. *); id: string (** A string that uniquely identifies the node within its graph. *); label: message option (** A short description of the node. *); location: location option (** A code location associated with the node. *); properties: property_bag option (** Key/value pairs that provide additional information about the node. *) } [@@deriving show,eq] (** Describes a runtime exception encountered during the execution of an analysis tool. *) type exception_ = { inner_exceptions: exception_ list option (** An array of exception objects each of which is considered a cause of this exception. *); kind: string option (** A string that identifies the kind of exception, for example, the fully qualified type name of an object that was thrown, or the symbolic name of a signal. *); message: string option (** A message that describes the exception. *); properties: property_bag option (** Key/value pairs that provide additional information about the exception. *); stack: stack option (** The sequence of function calls leading to the exception. *) } [@@deriving show,eq] (** A network of nodes and directed edges that describes some aspect of the structure of the code (for example, a call graph). *) type graph = { description: message option (** A description of the graph. *); edges: edge list option (** An array of edge objects representing the edges of the graph. *); nodes: node list option (** An array of node objects representing the nodes of the graph. *); properties: property_bag option (** Key/value pairs that provide additional information about the graph. *) } [@@deriving show,eq] (** A result produced by an analysis tool. *) type result = { analysis_target: artifact_location option (** Identifies the artifact that the analysis tool was instructed to scan. This need not be the same as the artifact where the result actually occurred. *); attachments: attachment list option (** A set of artifacts relevant to the result. *); baseline_state: result_baseline_state option (** The state of a result relative to a baseline of a previous run. *); code_flows: code_flow list option (** An array of 'codeFlow' objects relevant to the result. *); correlation_guid: result_correlation_guid option (** A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID. *); fingerprints: hm_str_str option (** A set of strings each of which individually defines a stable, unique identity for the result. *); fixes: fix list option (** An array of 'fix' objects, each of which represents a proposed fix to the problem indicated by the result. *); graph_traversals: graph_traversal list option (** An array of one or more unique 'graphTraversal' objects. *); graphs: graph list option (** An array of zero or more unique graph objects associated with the result. *); guid: result_guid option (** A stable, unique identifier for the result in the form of a GUID. *); hosted_viewer_uri: string option (** An absolute URI at which the result can be viewed. *); kind: result_kind option (** A value that categorizes results by evaluation state. *); level: result_level option (** A value specifying the severity level of the result. *); locations: location list option (** The set of locations where the result was detected. Specify only one location unless the problem indicated by the result can only be corrected by making a change at every specified location. *); message: message (** A message that describes the result. The first sentence of the message only will be displayed when visible space is limited. *); occurrence_count: int64 option (** A positive integer specifying the number of times this logically unique result was observed in this run. *); partial_fingerprints: hm_str_str option (** A set of strings that contribute to the stable, unique identity of the result. *); properties: property_bag option (** Key/value pairs that provide additional information about the result. *); provenance: result_provenance option (** Information about how and when the result was detected. *); rank: int64; related_locations: location list option (** A set of locations relevant to this result. *); rule: reporting_descriptor_reference option (** A reference used to locate the rule descriptor relevant to this result. *); rule_id: string option (** The stable, unique identifier of the rule, if any, to which this result is relevant. *); rule_index: int64 (** The index within the tool component rules array of the rule object associated with this result. *); stacks: stack list option (** An array of 'stack' objects relevant to the result. *); suppressions: suppression list option (** A set of suppressions relevant to this result. *); taxa: reporting_descriptor_reference list option (** An array of references to taxonomy reporting descriptors that are applicable to the result. *); web_request: web_request option (** A web request associated with this result. *); web_response: web_response option (** A web response associated with this result. *); work_item_uris: string list option (** The URIs of the work items associated with this result. *) } [@@deriving show,eq] (** Describes a condition relevant to the tool itself, as opposed to being relevant to a target being analyzed by the tool. *) type notification = { associated_rule: reporting_descriptor_reference option (** A reference used to locate the rule descriptor associated with this notification. *); descriptor: reporting_descriptor_reference option (** A reference used to locate the descriptor relevant to this notification. *); exception_: exception_ option (** The runtime exception, if any, relevant to this notification. *); level: notification_level option (** A value specifying the severity level of the notification. *); locations: location list option (** The locations relevant to this notification. *); message: message (** A message that describes the condition that was encountered. *); properties: property_bag option (** Key/value pairs that provide additional information about the notification. *); thread_id: int64 option (** The thread identifier of the code that generated the notification. *); time_utc: string option (** The Coordinated Universal Time (UTC) date and time at which the analysis tool generated the notification. *) } [@@deriving show,eq] (** The runtime environment of the analysis tool run. *) type invocation = { account: string option (** The account under which the invocation occurred. *); arguments: string option (** An array of strings, containing in order the command line arguments passed to the tool from the operating system. *); command_line: string option (** The command line used to invoke the tool. *); end_time_utc: string option (** The Coordinated Universal Time (UTC) date and time at which the invocation ended. See "Date/time properties" in the SARIF spec for the required format. *); environment_variables: hm_str_str option (** The environment variables associated with the analysis tool process, expressed as key/value pairs. *); executable_location: artifact_location option (** An absolute URI specifying the location of the executable that was invoked. *); execution_successful: bool (** Specifies whether the tool's execution completed successfully. *); exit_code: int64 option (** The process exit code. *); exit_code_description: string option (** The reason for the process exit. *); exit_signal_name: string option (** The name of the signal that caused the process to exit. *); exit_signal_number: int64 option (** The numeric value of the signal that caused the process to exit. *); notification_configuration_overrides: configuration_override list option (** An array of configurationOverride objects that describe notifications related runtime overrides. *); process_id: int64 option (** The id of the process in which the invocation occurred. *); process_start_failure_message: string option (** The reason given by the operating system that the process failed to start. *); properties: property_bag option (** Key/value pairs that provide additional information about the invocation. *); response_files: artifact_location list option (** The locations of any response files specified on the tool's command line. *); rule_configuration_overrides: configuration_override list option (** An array of configurationOverride objects that describe rules related runtime overrides. *); start_time_utc: string option (** The Coordinated Universal Time (UTC) date and time at which the invocation started. See "Date/time properties" in the SARIF spec for the required format. *); stderr: artifact_location option (** A file containing the standard error stream from the process that was invoked. *); stdin: artifact_location option (** A file containing the standard input stream to the process that was invoked. *); stdout: artifact_location option (** A file containing the standard output stream from the process that was invoked. *); stdout_stderr: artifact_location option (** A file containing the interleaved standard output and standard error stream from the process that was invoked. *); tool_configuration_notifications: notification list option (** A list of conditions detected by the tool that are relevant to the tool's configuration. *); tool_execution_notifications: notification list option (** A list of runtime conditions detected by the tool during the analysis. *); working_directory: artifact_location option (** The working directory for the invocation. *) } [@@deriving show,eq] (** Describes how a converter transformed the output of a static analysis tool from the analysis tool's native output format into the SARIF format. *) type conversion = { analysis_tool_log_files: artifact_location list option (** The locations of the analysis tool's per-run log files. *); invocation: invocation option (** An invocation object that describes the invocation of the converter. *); properties: property_bag option (** Key/value pairs that provide additional information about the conversion. *); tool: tool (** A tool object that describes the converter. *) } [@@deriving show,eq] (** A single artifact. In some cases, this artifact might be nested within another artifact. *) type artifact = { contents: artifact_content option (** The contents of the artifact. *); description: message option (** A short description of the artifact. *); encoding: string option (** Specifies the encoding for an artifact object that refers to a text file. *); hashes: hm_str_str option (** A dictionary, each of whose keys is the name of a hash function and each of whose values is the hashed value of the artifact produced by the specified hash function. *); last_modified_time_utc: string option (** The Coordinated Universal Time (UTC) date and time at which the artifact was most recently modified. See "Date/time properties" in the SARIF spec for the required format. *); length: int64 (** The length of the artifact in bytes. *); location: artifact_location option (** The location of the artifact. *); mime_type: artifact_mimetype option (** The MIME type (RFC 2045) of the artifact. *); offset: int64 option (** The offset in bytes of the artifact within its containing artifact. *); parent_index: int64 (** Identifies the index of the immediate parent of the artifact, if this artifact is nested. *); properties: external_properties option (** Key/value pairs that provide additional information about the artifact. *); roles: artifact_roles_item list option (** The role or roles played by the artifact in the analysis. *); source_language: string option (** Specifies the source language for any artifact object that refers to a text file that contains source code. *) } [@@deriving show,eq] (** The top-level element of an external property file. *) and external_properties = { addresses: address list option (** Addresses that will be merged with a separate run. *); artifacts: artifact list option (** An array of artifact objects that will be merged with a separate run. *); conversion: conversion option (** A conversion object that will be merged with a separate run. *); driver: tool_component option (** The analysis tool object that will be merged with a separate run. *); extensions: tool_component list option (** Tool extensions that will be merged with a separate run. *); externalized_properties: property_bag option (** Key/value pairs that provide additional information that will be merged with a separate run. *); graph: graph list option (** An array of graph objects that will be merged with a separate run. *); guid: external_properties_guid option (** A stable, unique identifier for this external properties object, in the form of a GUID. *); invocations: invocation option (** Describes the invocation of the analysis tool that will be merged with a separate run. *); logical_locations: logical_location list option (** An array of logical locations such as namespaces, types or functions that will be merged with a separate run. *); policies: tool_component list option (** Tool policies that will be merged with a separate run. *); properties: property_bag option (** Key/value pairs that provide additional information about the external properties. *); results: result option (** An array of result objects that will be merged with a separate run. *); run_guid: external_properties_run_guid option (** A stable, unique identifier for the run associated with this external properties object, in the form of a GUID. *); schema: string option (** The URI of the JSON schema corresponding to the version of the external property file format. *); taxonomies: tool_component list option (** Tool taxonomies that will be merged with a separate run. *); thread_flow_locations: thread_flow_location list option (** An array of threadFlowLocation objects that will be merged with a separate run. *); translations: tool_component list option (** Tool translations that will be merged with a separate run. *); version: external_properties_version option (** The SARIF format version of this external properties object. *); web_requests: web_request list option (** Requests that will be merged with a separate run. *); web_responses: web_response list option (** Responses that will be merged with a separate run. *) } [@@deriving show,eq] (** Specifies the information necessary to retrieve a desired revision from a version control system. *) type version_control_details = { as_of_time_utc: string option (** A Coordinated Universal Time (UTC) date and time that can be used to synchronize an enlistment to the state of the repository at that time. *); branch: string option (** The name of a branch containing the revision. *); mapped_to: artifact_location option (** The location in the local file system to which the root of the repository was mapped at the time of the analysis. *); properties: property_bag option (** Key/value pairs that provide additional information about the version control details. *); repository_uri: string (** The absolute URI of the repository. *); revision_id: string option (** A string that uniquely and permanently identifies the revision within the repository. *); revision_tag: string option (** A tag that has been applied to the revision. *) } [@@deriving show,eq] (** Defines locations of special significance to SARIF consumers. *) type special_locations = { display_base: artifact_location option (** Provides a suggestion to SARIF consumers to display file paths relative to the specified location. *); properties: property_bag option (** Key/value pairs that provide additional information about the special locations. *) } [@@deriving show,eq] type sarif_version = [ `TwoDotOneDotZero ] [@@deriving show,eq] (** The language of the messages emitted into the log file during this run (expressed as an ISO 639-1 two-letter lowercase culture code) and an optional region (expressed as an ISO 3166-1 two-letter uppercase subculture code associated with a country or region). The casing is recommended but not required (in order for this data to conform to RFC5646). *) type run_language = string [@@deriving show,eq] (** Specifies the unit in which the tool measures columns. *) type run_column_kind = [ `Utf16CodeUnits | `UnicodeCodePoints ] [@@deriving show,eq] (** The 'guid' property of a previous SARIF 'run' that comprises the baseline that was used to compute result 'baselineState' properties for the run. *) type run_baseline_guid = string [@@deriving show,eq] (** A stable, unique identifier for this object's containing run object in the form of a GUID. *) type run_automation_details_guid = string [@@deriving show,eq] (** A stable, unique identifier for the equivalence class of runs to which this object's containing run object belongs in the form of a GUID. *) type run_automation_details_correlation_guid = string [@@deriving show,eq] (** Information that describes a run's identity and role within an engineering system process. *) type run_automation_details = { correlation_guid: run_automation_details_correlation_guid option (** A stable, unique identifier for the equivalence class of runs to which this object's containing run object belongs in the form of a GUID. *); description: message option (** A description of the identity and role played within the engineering system by this object's containing run object. *); guid: run_automation_details_guid option (** A stable, unique identifier for this object's containing run object in the form of a GUID. *); id: string option (** A hierarchical string that uniquely identifies this object's containing run object. *); properties: property_bag option (** Key/value pairs that provide additional information about the run automation details. *) } [@@deriving show,eq] type hm_str_al = (string * artifact_location) list [@@deriving show,eq] (** A stable, unique identifier for the external property file in the form of a GUID. *) type external_property_file_reference_guid = string [@@deriving show,eq] (** Contains information that enables a SARIF consumer to locate the external property file that contains the value of an externalized property associated with the run. *) type external_property_file_reference = { guid: external_property_file_reference_guid option (** A stable, unique identifier for the external property file in the form of a GUID. *); item_count: int64 (** A non-negative integer specifying the number of items contained in the external property file. *); location: artifact_location option (** The location of the external property file. *); properties: property_bag option (** Key/value pairs that provide additional information about the external property file. *) } [@@deriving show,eq] (** References to external property files that should be inlined with the content of a root log file. *) type external_property_file_references = { addresses: external_property_file_reference list option (** An array of external property files containing run.addresses arrays to be merged with the root log file. *); artifacts: external_property_file_reference list option (** An array of external property files containing run.artifacts arrays to be merged with the root log file. *); conversion: external_property_file_reference option (** An external property file containing a run.conversion object to be merged with the root log file. *); driver: external_property_file_reference option (** An external property file containing a run.driver object to be merged with the root log file. *); extensions: external_property_file_reference list option (** An array of external property files containing run.extensions arrays to be merged with the root log file. *); externalized_properties: external_property_file_reference option (** An external property file containing a run.properties object to be merged with the root log file. *); graphs: external_property_file_reference list option (** An array of external property files containing a run.graphs object to be merged with the root log file. *); invocations: external_property_file_reference list option (** An array of external property files containing run.invocations arrays to be merged with the root log file. *); logical_locations: external_property_file_reference list option (** An array of external property files containing run.logicalLocations arrays to be merged with the root log file. *); policies: external_property_file_reference list option (** An array of external property files containing run.policies arrays to be merged with the root log file. *); properties: property_bag option (** Key/value pairs that provide additional information about the external property files. *); results: external_property_file_reference list option (** An array of external property files containing run.results arrays to be merged with the root log file. *); taxonomies: external_property_file_reference list option (** An array of external property files containing run.taxonomies arrays to be merged with the root log file. *); thread_flow_locations: external_property_file_reference list option (** An array of external property files containing run.threadFlowLocations arrays to be merged with the root log file. *); translations: external_property_file_reference list option (** An array of external property files containing run.translations arrays to be merged with the root log file. *); web_requests: external_property_file_reference list option (** An array of external property files containing run.requests arrays to be merged with the root log file. *); web_responses: external_property_file_reference list option (** An array of external property files containing run.responses arrays to be merged with the root log file. *) } [@@deriving show,eq] (** Describes a single run of an analysis tool, and contains the reported output of that run. *) type run = { addresses: address list option (** Addresses associated with this run instance, if any. *); artifacts: artifact list option (** An array of artifact objects relevant to the run. *); automation_details: run_automation_details option (** Automation details that describe this run. *); baseline_guid: run_baseline_guid option (** The 'guid' property of a previous SARIF 'run' that comprises the baseline that was used to compute result 'baselineState' properties for the run. *); column_kind: run_column_kind option (** Specifies the unit in which the tool measures columns. *); conversion: conversion option (** A conversion object that describes how a converter transformed an analysis tool's native reporting format into the SARIF format. *); default_encoding: string option (** Specifies the default encoding for any artifact object that refers to a text file. *); default_source_language: string option (** Specifies the default source language for any artifact object that refers to a text file that contains source code. *); external_property_file_references: external_property_file_references option (** References to external property files that should be inlined with the content of a root log file. *); graphs: graph list option (** An array of zero or more unique graph objects associated with the run. *); invocations: invocation list option (** Describes the invocation of the analysis tool. *); language: run_language option (** The language of the messages emitted into the log file during this run (expressed as an ISO 639-1 two-letter lowercase culture code) and an optional region (expressed as an ISO 3166-1 two-letter uppercase subculture code associated with a country or region). The casing is recommended but not required (in order for this data to conform to RFC5646). *); logical_locations: logical_location list option (** An array of logical locations such as namespaces, types or functions. *); newline_sequences: string list (** An ordered list of character sequences that were treated as line breaks when computing region information for the run. *); original_uri_base_ids: hm_str_al option (** The artifact location specified by each uriBaseId symbol on the machine where the tool originally ran. *); policies: tool_component list option (** Contains configurations that may potentially override both reportingDescriptor.defaultConfiguration (the tool's default severities) and invocation.configurationOverrides (severities established at run-time from the command line). *); properties: property_bag option (** Key/value pairs that provide additional information about the run. *); redaction_tokens: string list option (** An array of strings used to replace sensitive information in a redaction-aware property. *); results: result list option (** The set of results contained in an SARIF log. The results array can be omitted when a run is solely exporting rules metadata. It must be present (but may be empty) if a log file represents an actual scan. *); run_aggregates: run_automation_details list option (** Automation details that describe the aggregate of runs to which this run belongs. *); special_locations: special_locations option (** A specialLocations object that defines locations of special significance to SARIF consumers. *); taxonomies: tool_component list option (** An array of toolComponent objects relevant to a taxonomy in which results are categorized. *); thread_flow_locations: thread_flow_location list option (** An array of threadFlowLocation objects cached at run level. *); tool: tool (** Information about the tool or tool pipeline that generated the results in this run. A run can only contain results produced by a single tool or tool pipeline. A run can aggregate results from multiple log files, as long as context around the tool run (tool command-line arguments and the like) is identical for all aggregated files. *); translations: tool_component list option (** Specifies the revision in version control of the artifacts that were scanned. *); version_control_provenance: version_control_details list option (** Specifies the revision in version control of the artifacts that were scanned. *); web_requests: web_request list option (** An array of request objects cached at run level. *); web_responses: web_response list option (** An array of response objects cached at run level. *) } [@@deriving show,eq] (** Core type: Static Analysis Results Format (SARIF) Version 2.1.0 JSON Schema: a standard format for the output of static analysis tools. *) type sarif_json_schema = { version: sarif_version (** The SARIF format version of this log file. *); inline_external_properties: external_properties list option (** References to external property files that share data between runs. *); properties: property_bag option (** Key/value pairs that provide additional information about the log file. *); runs: run list (** The set of runs contained in this log file. *); schema: string option (** The URI of the JSON schema corresponding to the version. *) } [@@deriving show,eq]