@@ -316,13 +316,13 @@ func (r ImageEditParams) MarshalMultipart() (data []byte, contentType string, er
316
316
//
317
317
// Use [param.IsOmitted] to confirm if a field is set.
318
318
type ImageEditParamsImageUnion struct {
319
- OfFile io.Reader `json:",omitzero,inline"`
320
- OfBinaryArray []io.Reader `json:",omitzero,inline"`
319
+ OfFile io.Reader `json:",omitzero,inline"`
320
+ OfFileArray []io.Reader `json:",omitzero,inline"`
321
321
paramUnion
322
322
}
323
323
324
324
func (u ImageEditParamsImageUnion ) MarshalJSON () ([]byte , error ) {
325
- return param .MarshalUnion [ImageEditParamsImageUnion ](u .OfFile , u .OfBinaryArray )
325
+ return param .MarshalUnion [ImageEditParamsImageUnion ](u .OfFile , u .OfFileArray )
326
326
}
327
327
func (u * ImageEditParamsImageUnion ) UnmarshalJSON (data []byte ) error {
328
328
return apijson .UnmarshalRoot (data , u )
@@ -331,8 +331,8 @@ func (u *ImageEditParamsImageUnion) UnmarshalJSON(data []byte) error {
331
331
func (u * ImageEditParamsImageUnion ) asAny () any {
332
332
if ! param .IsOmitted (u .OfFile ) {
333
333
return & u .OfFile
334
- } else if ! param .IsOmitted (u .OfBinaryArray ) {
335
- return & u .OfBinaryArray
334
+ } else if ! param .IsOmitted (u .OfFileArray ) {
335
+ return & u .OfFileArray
336
336
}
337
337
return nil
338
338
}
0 commit comments