Skip to content

Commit d3b3f54

Browse files
Update examples/complex_validation.py
Co-authored-by: Jan Kowalleck <jan.kowalleck@gmail.com> Signed-off-by: Saquib Saifee <saquibsaifee2@gmail.com>
1 parent 0295ccc commit d3b3f54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/complex_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def validate_sbom(raw_data: str) -> bool:
144144
# 1. Attempt to detect JSON and its version
145145
try:
146146
data = json.loads(raw_data)
147-
output_format = OutputFormat.JSON
147+
input_format = OutputFormat.JSON
148148
spec_version_str = data.get('specVersion')
149149
if not spec_version_str:
150150
print('Error: Missing specVersion in JSON SBOM', file=sys.stderr)

0 commit comments

Comments
 (0)