Skip to content

Commit f99b8ed

Browse files
authored
Merge pull request #3 from scovetta/users/miscovet/final
Bump schema to 2.1.0 (final)
2 parents fa8028a + fc60a9f commit f99b8ed

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

GenerateSarifOm.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22
py -m jschema_to_python ^
3-
--schema-path sarif-2.1.0-rtm.4.json ^
3+
--schema-path sarif-schema-2.1.0.json ^
44
--module-name sarif_om ^
55
--output-directory sarif_om ^
66
--root-class-name SarifLog ^

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
sarif-python-om
2-
===============
1+
sarif-om
2+
========
33

44
Python classes for the SARIF 2.1.0 object model
55

66
Usage
77
=====
88
::
99

10-
pip install sarif-python-om
10+
pip install sarif-om
1111

1212
import sarif_om
1313

@@ -27,13 +27,13 @@ Generation
2727

2828
The classes in this module were generated from the `SARIF JSON schema <https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/schemas/sarif-schema-2.1.0.json>`_
2929
by the `jschema-to-python <https://github.com/microsoft/jschema-to-python>`_ code generator,
30-
using the JSON schema file ``sarif-2.1.0-rtm.4.json`` and the code generation hints file ``code-gen-hints.json``
30+
using the final SARIF standard JSON schema file ``sarif-schema-2.1.0.json`` and the code generation hints file ``code-gen-hints.json``
3131
at the root of the GitHub repo, with the following command line::
3232

3333
pip install jschema-to-python
3434

3535
py -m jschema_to_python
36-
--schema-path sarif-2.1.0-rtm.4.json
36+
--schema-path sarif-schema-2.1.0.json
3737
--module-name sarif_om
3838
--output-directory sarif_om
3939
--root-class-name SarifLog

sarif-2.1.0-rtm.4.json renamed to sarif-schema-2.1.0.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"title": "Static Analysis Results Format (SARIF) Version 2.1.0-rtm.4 JSON Schema",
4-
"id": "https://raw.githubusercontent.com/schemastore/schemastore/master/src/schemas/json/sarif-2.1.0-rtm.4.json",
5-
"description": "Static Analysis Results Format (SARIF) Version 2.1.0-rtm.4 JSON Schema: a standard format for the output of static analysis tools.",
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Static Analysis Results Format (SARIF) Version 2.1.0 JSON Schema",
4+
"$id": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
5+
"description": "Static Analysis Results Format (SARIF) Version 2.1.0 JSON Schema: a standard format for the output of static analysis tools.",
66
"additionalProperties": false,
77
"type": "object",
88
"properties": {

sarif_om/_sarif_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@attr.s
77
class SarifLog(object):
8-
"""Static Analysis Results Format (SARIF) Version 2.1.0-rtm.4 JSON Schema: a standard format for the output of static analysis tools."""
8+
"""Static Analysis Results Format (SARIF) Version 2.1.0 JSON Schema: a standard format for the output of static analysis tools."""
99

1010
runs = attr.ib(metadata={"schema_property_name": "runs"})
1111
version = attr.ib(metadata={"schema_property_name": "version"})

0 commit comments

Comments
 (0)