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

feat: xml output omit defaultNS identifier #449

Closed
wants to merge 4 commits into from

Conversation

jkowalleck
Copy link
Member

fixes #438

BREAKING CHANGE

fixes #438

BREAKING CHANGE

Signed-off-by: Jan Kowalleck <[email protected]>
@jkowalleck jkowalleck requested a review from a team as a code owner September 22, 2023 07:55
@jkowalleck
Copy link
Member Author

breaks for the following reasons: see #438 (comment)

@jkowalleck jkowalleck marked this pull request as draft September 22, 2023 09:29
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
@codacy-production
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.16% 80.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (1c9ea9e) 3168 2944 92.93%
Head commit (914e8f2) 3168 (+0) 2949 (+5) 93.09% (+0.16%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#449) 10 8 80.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@jkowalleck jkowalleck closed this Oct 4, 2023
@jkowalleck jkowalleck reopened this Oct 4, 2023
@jkowalleck jkowalleck added this to the 5.0.0 milestone Oct 4, 2023
@jkowalleck jkowalleck added the enhancement New feature or request label Oct 4, 2023
@jkowalleck jkowalleck mentioned this pull request Oct 4, 2023
2 tasks
@jkowalleck
Copy link
Member Author

superseded by #458

@jkowalleck jkowalleck closed this Oct 4, 2023
jkowalleck added a commit that referenced this pull request Oct 4, 2023
add indention to outputters. this may come at a cost!


Breaking Changes
------------------
* abstract Method `output.BaseOutput.output_as_string()` got new optional kwarg `indent`
* abstract Method `output.BaseOutput.output_as_string()` accepts arbitrary kwargs

Changed
----------
* XML output uses a default namespace, which makes results smaller.


Added
------------------
* All outputters' method `output_as_string()` got new optional kwarg `indent`
* All outputters' method `output_as_string()` accepts arbitrary kwargs
* All outputters' method `output_to_file()` got new optional kwarg `indent`
* All outputters' method `output_to_file()` accepts arbitrary kwargs

-----

- [x] implementation
- [x] tests (snapshot binary compare; structural equal compare) 

-----

enables CycloneDX/cyclonedx-python#424
fixes #437
fixes #438
supersedes #449

---------

Signed-off-by: Jan Kowalleck <[email protected]>
@jkowalleck jkowalleck deleted the xml-omit-defaultNSidentifier branch October 6, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant