@php $hasChildren ??= false; $isArrayBody = $name == "[]"; @endphp
@if($hasChildren && !$isArrayBody)
@endif @unless($isArrayBody)
{{ $name }}
@if($type) {{ $type }} @endif
@if($required)
required @endif @endunless
{!! Parsedown::instance()->text($description) !!}
@if($isArrayBody)
array of:
@if($required)
required @endif
@endif @if(!$hasChildren && !is_null($example) && $example != '')
Example:
{{ is_array($example) ? json_encode($example) : $example }}
@endif