diff --git a/api/analysis.go b/api/analysis.go index e3a0d13e..ed885c08 100644 --- a/api/analysis.go +++ b/api/analysis.go @@ -2881,6 +2881,7 @@ func (r *yamlEncoder) embed(object any) encoder { // The manifest must contain ALL markers even when sections are empty. // Note: `^]` = `\x1D` = GS (group separator). // Section markers: +// // ^]BEGIN-MAIN^] // ^]END-MAIN^] // ^]BEGIN-ISSUES^] diff --git a/binding/application.go b/binding/application.go index 682ef77f..7266987b 100644 --- a/binding/application.go +++ b/binding/application.go @@ -317,12 +317,14 @@ type Analysis struct { // The manifest must contain ALL markers even when sections are empty. // Note: `^]` = `\x1D` = GS (group separator). // Section markers: +// // ^]BEGIN-MAIN^] // ^]END-MAIN^] // ^]BEGIN-ISSUES^] // ^]END-ISSUES^] // ^]BEGIN-DEPS^] // ^]END-DEPS^] +// // The encoding must be: // - application/json // - application/x-yaml diff --git a/binding/client.go b/binding/client.go index 2cbca168..a5976eb9 100644 --- a/binding/client.go +++ b/binding/client.go @@ -527,8 +527,9 @@ func (r *Client) FilePutEncoded(path, source string, object any, encoding string } fields := []Field{ { - Name: api.FileField, - Path: source, + Name: api.FileField, + Path: source, + Encoding: encoding, }, } err = r.FileSend(path, http.MethodPut, fields, object)