CycloneDX / CycloneDX/cyclonedx-maven-plugin

"[WARNING] Unknown keyword additionalItems" when validating generated json

Open
#305 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
Java
Stars
385
Forks
108
Avg merge
17h 31m
Merged PRs (30d)
7

Description

since 2.6.0 (but not with 2.5.3), makeAggregateBom IT https://github.com/CycloneDX/cyclonedx-maven-plugin/tree/master/src/it/makeAggregateBom execution triggers a warning when validating json:

[INFO] CycloneDX: Validating BOM (JSON): /path/to/CycloneDX/cyclonedx-maven-plugin/target/its/makeAggregateBom/target/bom.json
[WARNING] Unknown keyword additionalItems - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the makeAggregateBom integration test at src/it/makeAggregateBom and reproduce validation of target/bom.json using the reported version change. Trace the JSON validation setup and confirm that the additionalItems warning is eliminated while BOM validation still succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.