#social 2015-10-10

2015-10-10 UTC
tilgovi, bblfish, kevinmarks, tantek, the_frey, the_frey_ and jasnell joined the channel
#
cwebber2
jasnell: ping if around
#
cwebber2
> When serialized, absent properties are represented by either (a) setting the property value to null, or (b) by omitting the property declaration altogether at the option of the publisher; these representations are semantically equivalent. If a property has an array value, the absence of any items in that array MUST be represented by omitting the property entirely or by setting the value to null. The appropriate interpretation of an
#
cwebber2
omitted or explicitly null value is that no value has been assigned as opposed to the view that the given value is empty or nil.
#
cwebber2
^- I find this a bit confusing/surprising...
#
cwebber2
we're not supposed to preprocess the json before sending to the json-ld expander are we?
#
cwebber2
and for all properties? if a Link object does not contain a mediaType I can't imagine you need to fill that in with null
#
cwebber2
maybe I should file github issues as I bump into these things
the_frey joined the channel
#
jasnell
cwebber2: what's up
#
jasnell
oh, hold on, saw your other notes... one sec
#
jasnell
if properties that have no value, simply omit it from the serialized result
#
jasnell
don't worry about setting it to null
#
jasnell
that's mostly for the consumption side. If you see "mediaType": null then you assume there's no value, not that the value is null
the_frey, bblfish and tilgovi joined the channel
#
cwebber2
aha, clearer! :)
#
cwebber2
btw I'm working on an AS2 library for Python, as we discussed on last call.. Hopefully something to show by next call.
#
cwebber2
hopefully it can fulfill the test suite stuff too.
bblfish, the_frey, ben_thatmustbeme, jasnell and jasnell_ joined the channel