apidoc/apidoc-core

Nullable param types using char "?"

gponcon opened this issue · 1 comments

Give the possibility of specifying a nullable parameter with this notation, as with PHP 7.1 :

@apiParam {?MyType} myParameter ...

Therefore replace the type: regex in parsers/api_params.js by : '(\\?[a-zA-Z0-9\(\)#:\\.\\/\\\\\\[\\]_-]+)' ?

Hello,

I think it should start with '(\\?? to make the ? optional. Wouldn't you agree?