Skip to content

Commit 1b79e15

Browse files
Add output data format version to header
Adds a new attribute `output_format_version` to the scancode header to support output data format versioning. See aboutcode-org/scancode-toolkit#2653 for more details. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 2e98f92 commit 1b79e15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/commoncode/resource.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ class Header(object):
154154
notice = String(default='', help='Notice text for this tool.')
155155
start_timestamp = String(help='Start timestamp for this header.')
156156
end_timestamp = String(help='End timestamp for this header.')
157+
output_format_version = String(help='Version for the scancode output data format, such as v1.1 .')
157158
duration = String(help='Scan duration in seconds.')
158159
message = String(help='Message text.')
159160
errors = List(help='List of error messages.')
@@ -175,6 +176,7 @@ def from_dict(cls, **kwargs):
175176
'notice',
176177
'start_timestamp',
177178
'end_timestamp',
179+
'output_format_version',
178180
'duration',
179181
'message',
180182
'errors',

0 commit comments

Comments
 (0)