mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +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);
|
$markdown .= sprintf("%s:\n\n", $name);
|
||||||
|
|
||||||
foreach ($filter as $key => $value) {
|
foreach ($filter as $key => $value) {
|
||||||
$markdown .= sprintf(" * %s: %s\n", $key, $value);
|
$markdown .= sprintf(" * %s: %s\n", $key, trim(json_encode($value), '"'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$markdown .= "\n";
|
$markdown .= "\n";
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
{% for key, value in infos %}
|
{% for key, value in infos %}
|
||||||
<li><em>{{ key }}</em> : {{ value }}</li>
|
<li><em>{{ key }}</em> : {{ value|json_encode|trim('"') }}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user