Repository navigation
Handle missing components in CSV conversion - #523
Open
dajiaohuang wants to merge 1 commit into
Open
dajiaohuang wants to merge 1 commit into
dajiaohuang wants to merge 1 commit into
Conversation
Emit the CSV header for valid BOMs without an optional components collection, with absent/empty JSON and XML regression coverage. Signed-off-by: wushuwen <mikewushuwen@outlook.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A valid BOM may omit its optional components collection. CSV serialization currently throws when enumerating it. Keep the header and skip the absent collection, with four CLI regressions for absent/empty collections in JSON and XML.
Fixes #288.
Validation recorded on 2026-10-15 against the unchanged main base (
b3cfa4b0edc356dad07e0b6e7ab6da0a94af0246) and byte-identical production/test files: base suite 129/129; new regressions on base 3 failures/1 pass; candidate suite 133/133; all four regression inputs passed explicit schema validation. These checks were not rerun for this submission; the separate README-only change from that validated tree is omitted here.Build limitation: the warning-as-error build passed only with
NuGetAudit=false; the unmodified build failed on existing dependency-advisory warnings. This PR changes no dependencies and does not claim dependency remediation or current CI acceptance.