Franciszek Stachura <[email protected]> wrote: > In Patchwork 3.x, in API versions above 1.1, the related field > of /patches is always an array. It is not present at all in API > version 1.1. > > In Patchwork 4.0, the field is null in 1.1, and is an array in later API > versions. > > Adding the omitempty tag causes the field to disappear from 1.1, but > then it's either an array or not present if empty in 1.4. > > Make the API more compatible with Patchwork 3.x by changing the field > into a pointer to a slice, adding the omitzero tag, and always > explicitly allocating an empty slice (&nil != &[]string{}) for /patches > responses. > > Signed-off-by: Franciszek Stachura <[email protected]> > ---
Acked-by: Robin Jarry <[email protected]> Applied, thanks. To [email protected]:getpatchwork/patchwork-next 63f07d094a30..0625f6477ab0 main -> main _______________________________________________ Patchwork mailing list [email protected] https://lists.ozlabs.org/listinfo/patchwork
