Fix the optional with defaults params issue.
Fix the optional with defaults params issue.

RyzacInc/discourse_api,discourse/discourse_api,Odyl/discourse_api,melissawahnish/discourse_api,spatten/discourse_api,oblakeerickson/discourse_api,techAPJ/discourse_api