Closed TUNER88 closed 9 years ago
It's a parser limitation. The answer was already here on closed issues, but instead of [] you must use {}.
@lightvision array
and object
are different datatypes, it so dread API tests would fail.
Documentation and real API should return same responses, otherwise the documentation is incorrect.
You must {} in documentation. When rendered it will have the correct [] for responses. And to be complete: its an annotaion parser limitation. Check your generated md documentation file and you will see the correct formated response.
As @lightvision has said it's a limitation of the parser. But the resulting documentation that's generated will be correct. You just need to use curly braces in your docblocks, even for arrays.
Perhaps one day I'll see if I can find away around the limitation, but it's not a big issue right now.
Thx, I've got it. Some notes about this limitation in docs would be really nice.
Example
Generates following error message:
How can I escape
[
and]
?