check if param is required
update required parameters handling
Merge pull request #11 from fly/requiredness

check if param is required