Docs generator: fixed option (type) validation error

Fixed error on validation that block javascript documentation generation.

This block the automatic generation of docs used to have  AngularJS version of docs.