Skip to content

Commit bbe8cfc

Browse files
Merge pull request #327 from bact/fix-validation-msg-order
Fix validation message order at command line
2 parents a5f3b47 + c189ae1 commit bbe8cfc

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ All notable changes to this project will be documented in this file.
1111
The format is based on [Keep a Changelog][keepachangelog]
1212
and this project adheres to [Semantic Versioning][semver].
1313

14+
## [4.1.2] - 2025-11-19
15+
16+
Note: Python 3.9 support will be dropped in the next major release.
17+
This is likely the final version supporting it.
18+
19+
### Fixed
20+
21+
- Fix validation message order at command line ([#327][])
22+
23+
[#327]: https://github.com/spdx/ntia-conformance-checker/pull/327
24+
1425
## [4.1.1] - 2025-11-18
1526

1627
This version primarily focused on improving the HTML output.
@@ -181,6 +192,7 @@ Thanks to @goneall, @licquia, and @kestewart for mentoring @linynjosh.
181192
[#1]: https://github.com/spdx/ntia-conformance-checker/pull/1
182193
[keepachangelog]: https://keepachangelog.com/en/1.1.0/
183194
[semver]: https://semver.org/spec/v2.0.0.html
195+
[4.1.2]: https://github.com/spdx/ntia-conformance-checker/releases/tag/v4.1.2
184196
[4.1.1]: https://github.com/spdx/ntia-conformance-checker/releases/tag/v4.1.1
185197
[4.1.0]: https://github.com/spdx/ntia-conformance-checker/releases/tag/v4.1.0
186198
[4.0.0]: https://github.com/spdx/ntia-conformance-checker/releases/tag/v4.0.0

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ keywords:
4949
- NTIA
5050
- CISA
5151
license: Apache-2.0
52-
version: 4.1.1
53-
date-released: '2025-11-18'
52+
version: 4.1.2
53+
date-released: '2025-11-19'

ntia_conformance_checker/report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ def report_text(
164164

165165
if rc.validation_messages:
166166
report.append(
167-
"\nThe document is not valid according to the SBOM "
167+
"The document is not valid according to the SBOM "
168168
f'specification ("{rc.sbom_spec}"). '
169169
"The following violations were found:\n"
170170
)
171-
print_validation_messages(rc.validation_messages, verbose)
171+
report.append(get_validation_messages_text(rc.validation_messages, verbose))
172172

173173
return "\n".join(report)
174174

ntia_conformance_checker/spdx3_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def validate_spdx3_data(
8181
if not isinstance(root_element, (spdx3.Bom, spdx3.software_Sbom)):
8282
error_msg = (
8383
"The root element must be of type Bom or software_Sbom. "
84-
f"Found: r{type(root_element)}"
84+
f"Found: {type(root_element)!r}"
8585
)
8686
root_element_id = getattr(root_element, "spdxId", None)
8787
context = ValidationContext(parent_id=doc_id, spdx_id=root_element_id)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "ntia_conformance_checker"
11-
version = "4.1.1"
11+
version = "4.1.2"
1212
authors = [
1313
{ name = "Josh Lin", email = "[email protected]" },
1414
{ name = "John Speed Meyers", email = "[email protected]" },

0 commit comments

Comments
 (0)