You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by Hendrik Dev <he...@gmail.com> on 2014/10/31 23:00:54 UTC

Null handling in Mapper

Hi Romain,

just show you post on IRC:

[19:03:25]  <rmannibucau> hmm, was wondering if we shouldn't allow to
return null in our mapper
[19:03:30]  <rmannibucau> (a new option)
[19:03:37]  <rmannibucau> cause today we always skip null IIRC

lets discuss here so that it gets not lost in the IRC nirvana.

-Hendrik

-- 
Hendrik Saly (salyh, hendrikdev22)
@hendrikdev22
PGP: 0x22D7F6EC

Re: Null handling in Mapper

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Looks a great start!


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-11-04 22:55 GMT+00:00 Hendrik Dev <he...@gmail.com>:
> see commit c0ebe9d2acbd8515a6169e7c1c80ecbe3ae67988
>
> On Fri, Oct 31, 2014 at 11:04 PM, Romain Manni-Bucau
> <rm...@gmail.com> wrote:
>> Yep,
>>
>> idea is the follow (all option should be added in the builder and as
>> setters in @Provider IMHO):
>> - allow to have nulls in the serialization
>> - allow to have/skip empty arrays in the serialization
>>
>> wdyt?
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau
>> http://www.tomitribe.com
>> http://rmannibucau.wordpress.com
>> https://github.com/rmannibucau
>>
>>
>> 2014-10-31 23:00 GMT+01:00 Hendrik Dev <he...@gmail.com>:
>>> Hi Romain,
>>>
>>> just show you post on IRC:
>>>
>>> [19:03:25]  <rmannibucau> hmm, was wondering if we shouldn't allow to
>>> return null in our mapper
>>> [19:03:30]  <rmannibucau> (a new option)
>>> [19:03:37]  <rmannibucau> cause today we always skip null IIRC
>>>
>>> lets discuss here so that it gets not lost in the IRC nirvana.
>>>
>>> -Hendrik
>>>
>>> --
>>> Hendrik Saly (salyh, hendrikdev22)
>>> @hendrikdev22
>>> PGP: 0x22D7F6EC
>
>
>
> --
> Hendrik Saly (salyh, hendrikdev22)
> @hendrikdev22
> PGP: 0x22D7F6EC

Re: Null handling in Mapper

Posted by Hendrik Dev <he...@gmail.com>.
see commit c0ebe9d2acbd8515a6169e7c1c80ecbe3ae67988

On Fri, Oct 31, 2014 at 11:04 PM, Romain Manni-Bucau
<rm...@gmail.com> wrote:
> Yep,
>
> idea is the follow (all option should be added in the builder and as
> setters in @Provider IMHO):
> - allow to have nulls in the serialization
> - allow to have/skip empty arrays in the serialization
>
> wdyt?
>
>
> Romain Manni-Bucau
> @rmannibucau
> http://www.tomitribe.com
> http://rmannibucau.wordpress.com
> https://github.com/rmannibucau
>
>
> 2014-10-31 23:00 GMT+01:00 Hendrik Dev <he...@gmail.com>:
>> Hi Romain,
>>
>> just show you post on IRC:
>>
>> [19:03:25]  <rmannibucau> hmm, was wondering if we shouldn't allow to
>> return null in our mapper
>> [19:03:30]  <rmannibucau> (a new option)
>> [19:03:37]  <rmannibucau> cause today we always skip null IIRC
>>
>> lets discuss here so that it gets not lost in the IRC nirvana.
>>
>> -Hendrik
>>
>> --
>> Hendrik Saly (salyh, hendrikdev22)
>> @hendrikdev22
>> PGP: 0x22D7F6EC



-- 
Hendrik Saly (salyh, hendrikdev22)
@hendrikdev22
PGP: 0x22D7F6EC

Re: Null handling in Mapper

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Yep,

idea is the follow (all option should be added in the builder and as
setters in @Provider IMHO):
- allow to have nulls in the serialization
- allow to have/skip empty arrays in the serialization

wdyt?


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-10-31 23:00 GMT+01:00 Hendrik Dev <he...@gmail.com>:
> Hi Romain,
>
> just show you post on IRC:
>
> [19:03:25]  <rmannibucau> hmm, was wondering if we shouldn't allow to
> return null in our mapper
> [19:03:30]  <rmannibucau> (a new option)
> [19:03:37]  <rmannibucau> cause today we always skip null IIRC
>
> lets discuss here so that it gets not lost in the IRC nirvana.
>
> -Hendrik
>
> --
> Hendrik Saly (salyh, hendrikdev22)
> @hendrikdev22
> PGP: 0x22D7F6EC