apidoc/apidoc-core

@apiPrivate parser returns string, causing strange data in output.

nomoon opened this issue · 1 comments

The @apiPrivate parser currently returns a string:

function parse() {
return 'private';
}

When documentation is generated with the --private flag, this results in the following JS/JSON data in the entry:

{
    ...,
    "0": "p",
    "1": "r",
    "2": "i",
    "3": "v",
    "4": "a",
    "5": "t",
    "6": "e",
    ...,
}

Looking at other similar parsers, it seems that the correct output of the parse() function should be an object, like this:

return {
deprecated: true
};

#112 was merged, so I'm going to close this. Thanks!