Skip to content

Conversation

@rlmestre
Copy link
Collaborator

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 adds support for SPDX BOM format alongside the existing CDX BOM format, including basic type assertions for BOM validation. The changes introduce SPDX23 types, create validation functions to distinguish between BOM formats, and fix an API response structure.

  • Added SPDX23 type support and SupportedBom union type
  • Created validation functions for CDX and SPDX BOM detection
  • Fixed API response structure in EolReportQueryResponse

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/types/index.mts Adds SPDX23 import and exports new union type SupportedBom
src/types/eol-scan.mts Fixes nested property name from 'result' to 'report' in API response
src/index.mts Exports new SPDX types and validation functions
src/bom/validation.mts Implements type assertion functions for BOM format detection

@rlmestre rlmestre enabled auto-merge (squash) July 31, 2025 13:59
@rlmestre rlmestre merged commit 761c01d into main Jul 31, 2025
6 checks passed
@rlmestre rlmestre deleted the feat/basic-assertions-and-api-change branch July 31, 2025 14:05
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