Skip to content

SPDX json marshalling fails if author name is left as default in generated config file #230

@par-anderssonTE

Description

@par-anderssonTE

In the generated template config file, the "author" section looks like this:
author:

  • name: '[OPTIONAL]'
    email: '[OPTIONAL]'

However, if you leave this as is, json marshalling fails on assembly:

Error: json: error calling MarshalJSON for type common.Creator: unexpected end of JSON input

Removing the author section or filling in the name solves the issue.

Expected behaviour:
Since sbomasm handles other config file properties with the default placeholder gracefully, it should do the same for author name.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions