pass object to constrain function
Merge pull request #48 from unmarshal/master

Passing current object to conform function