-
-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
This is probably both a bug report and a question.
Since cyclonedx.output.get_instance() has been removed via #493 the examples for the outputting in the docs are not valid anymore(bug report):
from cyclonedx.output import get_instance, BaseOutput, OutputFormat
outputter: BaseOutput = get_instance(bom=bom, output_format=OutputFormat.JSON)
bom_json: str = outputter.output_as_string()Here comes the question part:
cyclonedx.output.make_outputter() like this :
from cyclonedx.output import make_outputter, BaseOutput, OutputFormat, SchemaVersion
outputter: BaseOutput = make_outputter(bom=bom, output_format=OutputFormat.JSON, schema_version=SchemaVersion.V1_6)
bom_json: str = outputter.output_as_string()from cyclonedx.output.json import JsonV1Dot6
outputter = JsonV1Dot6(bom=bom)
bom_json: str = outputter.output_as_string()Which one of
If we agree on it, I can create a PR to resolve the bug in the docs.
tsjensen and jkowalleck
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation