talios/halbuilder — pull request #26 by steveg103 (2012-04-26 16:04:33+00:00)
Title: Allowing null properties in resources

Hi,

Thanks for writing halbuilder! I had a need to adapt it for a domain in which properties can have null values, and where those null values are significant (preferable to optional properties). The only ref I can find seems to agree that we should have the ability to use nulls in the app domain space (see http://groups.google.com/group/hal-discuss/browse_thread/thread/b5d55332ec7da702/3b6ace55adc30c19?lnk=gst&q=null#3b6ace55adc30c19 for the discussion), so I went ahead and added that capability to my branch of the project.

Rather than mess with ImmutableMap, I just created a separate member to hold null properties and added them to the appropriate readers and renderers.

Anyway, I wanted to offer up the changes in case you think they would be useful.