{{ $name }}   @if($type){{ $type }}@endif  @if($isInput && !$required)optional@endif   @if($isInput && empty($hasChildren)) @php $isList = Str::endsWith($type, '[]'); $fullName =str_replace('[]', '.0', $name); $baseType = $isList ? substr($type, 0, -2) : $type; // Ignore the first '[]': the frontend will take care of it while (\Str::endsWith($baseType, '[]')) { $fullName .= '.0'; $baseType = substr($baseType, 0, -2); } // When the body is an array, the item names will be ".0.thing" $fullName = ltrim($fullName, '.'); $inputType = match($baseType) { 'number', 'integer' => 'number', 'file' => 'file', default => 'text', }; @endphp @if($type === 'boolean') @elseif($isList) @else @endif @endif
{!! Parsedown::instance()->text($description) !!}