Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BOM validation failed due to nested URL element. #69

Closed
Swapnil-CSI opened this issue Jul 28, 2021 · 1 comment
Closed

BOM validation failed due to nested URL element. #69

Swapnil-CSI opened this issue Jul 28, 2021 · 1 comment

Comments

@Swapnil-CSI
Copy link

cdxgen is adding nested url element in output.

dotnet run -- validate --input-file console-browserify-sbom.xml --input-format xml_v1_2
Validating XML BOM...
Validation failed at line number 36 and position 14: The element 'http://cyclonedx.org/schema/bom/1.2:url' cannot contain child element 'http://cyclonedx.org/schema/bom/1.2:url' because the parent element's content model is text only.
BOM validated successfully.

bom output file. Please refer attachment.

        <reference type="website">
          <url>
            <url>https://github.com/davidchambers/Base64.js#readme</url>
          </url>
        </reference>

console-browserify-sbom.zip

@prabhu prabhu closed this as completed in 1794129 Aug 3, 2021
@prabhu
Copy link
Contributor

prabhu commented Aug 3, 2021

Thank you. This is fixed in 3.0.10

sorenmat pushed a commit to sorenmat/cdxgen that referenced this issue Nov 26, 2021
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

No branches or pull requests

2 participants