Skip to content

Commit b7a9fc2

Browse files
committed
Add Value External Reference
Signed-off-by: Alex Alzate <aalzate@sonatype.com>
1 parent bcf7e77 commit b7a9fc2

File tree

2 files changed

+4
-97
lines changed

2 files changed

+4
-97
lines changed

src/main/java/org/cyclonedx/generators/json/BomJsonGenerator16.java

-96
This file was deleted.

src/main/java/org/cyclonedx/util/serializer/ExternalReferenceSerializer.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ private void serializeXml(final ToXmlGenerator toXmlGenerator, final ExternalRef
8383
toXmlGenerator.writeFieldName("alg");
8484
toXmlGenerator.writeString(hash.getAlgorithm());
8585
toXmlGenerator.setNextIsAttribute(false);
86-
//toXmlGenerator.writeString(hash.getValue());
86+
87+
toXmlGenerator.setNextIsUnwrapped(true);
88+
toXmlGenerator.writeStringField("", hash.getValue());
89+
8790
toXmlGenerator.writeEndObject();
8891
}
8992
toXmlGenerator.writeEndObject();

0 commit comments

Comments
 (0)