Skip to content

Conversation

@rlmestre
Copy link
Collaborator

@rlmestre rlmestre commented Aug 5, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes and improves the SPDX BOM validation logic while adding comprehensive test coverage for both CDX and SPDX BOM validation functions.

  • Fixed incorrect SPDX identifier validation from "SPDXRef-Document" to "SPDXRef-DOCUMENT"
  • Enhanced SPDX validation to check for required fields (spdxVersion with proper format)
  • Added type safety checks for both CDX and SPDX validation functions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/bom/validation.ts Enhanced BOM validation with stricter type checks and corrected SPDX validation logic
src/bom/validation.test.ts Added comprehensive test suite covering validation functions, edge cases, and real-world examples

@rlmestre rlmestre enabled auto-merge (squash) August 5, 2025 15:03
@rlmestre rlmestre disabled auto-merge August 5, 2025 15:12
@rlmestre rlmestre enabled auto-merge (squash) August 5, 2025 18:06
@rlmestre rlmestre merged commit 439246e into main Aug 7, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants