mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Fixed issue if you add an array in a filter attribute
This commit is contained in:
parent
1e178669b7
commit
3aec03f6c7
@ -43,7 +43,7 @@ class MarkdownFormatter extends AbstractFormatter
|
||||
$markdown .= sprintf("%s:\n\n", $name);
|
||||
|
||||
foreach ($filter as $key => $value) {
|
||||
$markdown .= sprintf(" * %s: %s\n", $key, $value);
|
||||
$markdown .= sprintf(" * %s: %s\n", $key, trim(json_encode($value), '"'));
|
||||
}
|
||||
|
||||
$markdown .= "\n";
|
||||
|
@ -51,7 +51,7 @@
|
||||
<td>
|
||||
<ul>
|
||||
{% for key, value in infos %}
|
||||
<li><em>{{ key }}</em> : {{ value }}</li>
|
||||
<li><em>{{ key }}</em> : {{ value|json_encode|trim('"') }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user