mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +03:00
Added check for deprecated setting
Avoids adding the method as deprecated if the value of the deprecated setting is false
This commit is contained in:
parent
80b5162c83
commit
0c2cad6f0a
@ -20,7 +20,7 @@ class MarkdownFormatter extends AbstractFormatter
|
||||
{
|
||||
$markdown = sprintf("### `%s` %s ###\n", $data['method'], $data['uri']);
|
||||
|
||||
if(isset($data['deprecated'])) {
|
||||
if(isset($data['deprecated']) && false !== $data['deprecated']) {
|
||||
$markdown .= "### This method is deprecated ###";
|
||||
$markdown .= "\n\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user