sdeleuze
05/02/2018, 2:21 PMCzar
05/02/2018, 2:21 PMplugins {}
block with apply(false)
Czar
05/02/2018, 2:24 PMpluginManagement
, it could be related. Although in a toy project, which I created in attempt to illustrate the issue, this same approach still works correctly and resolves correct version.sdeleuze
05/02/2018, 2:53 PMapply(false)
sdeleuze
05/02/2018, 2:53 PMsdeleuze
05/02/2018, 2:54 PMCzar
05/02/2018, 3:08 PMmichael salmon
05/04/2018, 9:18 PMmichael salmon
05/04/2018, 9:19 PMmichael salmon
05/05/2018, 12:57 AMmichael salmon
05/05/2018, 1:48 AMavolkmann
05/05/2018, 8:40 AMavolkmann
05/05/2018, 8:40 AMavolkmann
05/05/2018, 8:40 AMdiesieben07
05/06/2018, 1:09 PMdata class User(val id: UUID, val username: String)
. I could add all possible fields (e.g. friends
) to this class, but causes some problems: I now need to make sure Jackson ignores those fields if they were not requested, my fields now have to be nullable even when they really shouldn't be.
Any ideas?nfrankel
05/06/2018, 1:16 PMnfrankel
05/06/2018, 1:17 PMdiesieben07
05/06/2018, 1:21 PMparent
), but if it's requested I still want it in the output, even if it's null.nfrankel
05/06/2018, 1:38 PMnfrankel
05/06/2018, 1:38 PMdiesieben07
05/06/2018, 1:44 PMparent
to be returned, I need to return it, even if it's actually null
(there might not be a parent).nfrankel
05/06/2018, 2:03 PMnull
fieldsdiesieben07
05/06/2018, 2:07 PMdiesieben07
05/06/2018, 2:08 PMnfrankel
05/06/2018, 2:09 PMJsonSerializer
then?diesieben07
05/06/2018, 2:10 PMkenkyee
05/06/2018, 2:14 PMdiesieben07
05/06/2018, 2:16 PMundefined
, not null
. Also, how is it a bad API if I don't want random fields showing up or not based on their value? I want my JSON output to be consistent.nfrankel
05/06/2018, 2:19 PMnfrankel
05/06/2018, 2:20 PM