We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimal reproducer
package main import ( "bytes" "fmt" spdx_json "github.com/spdx/tools-golang/json" "github.com/spdx/tools-golang/spdx" "github.com/spdx/tools-golang/spdx/v2/common" "github.com/spdx/tools-golang/spdx/v2/v2_3" ) func main() { w := bytes.NewBuffer(nil) o := common.Originator{ OriginatorType: "type", } p := v2_3.Package{ PackageOriginator: &o, } s := spdx.Document{ Packages: []*v2_3.Package{ &p, }, } err := spdx_json.Write(s, w) if err != nil { fmt.Printf("%s", err) } fmt.Printf("%s", w.Bytes()) }
Output:
json: error calling MarshalJSON for type *common.Originator: unexpected end of JSON input
The text was updated successfully, but these errors were encountered:
Provide a clearer error when using an invalid Originator
fd4b9bb
Fixes spdx#245
32f05be
Fixes spdx#245 Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
Successfully merging a pull request may close this issue.
Minimal reproducer
Output:
The text was updated successfully, but these errors were encountered: