feat: add isExternal property to Component for CycloneDX v1.7#959
Open
tonal wants to merge 1 commit intoCycloneDX:mainfrom
Open
feat: add isExternal property to Component for CycloneDX v1.7#959tonal wants to merge 1 commit intoCycloneDX:mainfrom
tonal wants to merge 1 commit intoCycloneDX:mainfrom
Conversation
Implement the isExternal boolean property on Component as specified in CycloneDX v1.7 schema. An external component is one that is not part of an assembly, but is expected to be provided by the environment. - Add is_external property to Component class with XML attribute serialization - Create XmlBoolAttribute serialization helper for proper bool handling - Add unit tests for is_external (default value, set/get, equality, sorting) - Add test fixture and snapshots for JSON/XML output - Supports v1.7+ schemas only Implements: CycloneDX#903 Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Signed-off-by: Alexandr N Zamaraev (aka tonal) <tonal@promsoft.ru>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 18 |
| Duplication | 0 |
TIP This summary will be updated as you push new changes. Give us feedback
Documentation build overview
Show files changed (3 files in total): 📝 3 modified | ➕ 0 added | ➖ 0 deleted
|
9 tasks
Member
|
Thank you so much for contributing this feature, @tonal. |
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.
Implement the
isExternalboolean property on Component as specified in CycloneDX v1.7 schema. An external component is one that is not part of an assembly, but is expected to be provided by the environment.is_externalproperty to Component class with XML attribute serializationXmlBoolAttributeserialization helper for proper bool handling (JSON: native bool, XML: lowercase string)is_external(default value, set/get, equality, sorting)Description
Adds the
isExternalproperty toComponentas defined in the CycloneDX v1.7 XML/JSON schema. This property indicates that a component is external to the organization and expected to be provided by the deployment environment. The implementation includes a custom serialization helper (XmlBoolAttribute) to handle the difference between JSON (native boolean) and XML (lowercase string attribute) serialization requirements.Resolves or fixes issue: #903
AI Tool Disclosure
Qwen Code (CLI agent)Qwen (latest)Implement isExternal property for Component per CycloneDX v1.7 spec, including tests and snapshotsAffirmation