Fixed option validation error

Fixed error on validation that block javascript documentation generation.
Merge pull request #2527 from mavimo/patch-1

Docs generator: fixed option (type) validation error