Skip to content

Commit 3629ea3

Browse files
committed
- Added back default sort to docs
1 parent afdbbac commit 3629ea3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Concerns/ApiDocHelpers.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,10 @@ public static function apiDocGenerateSortsMetadata(array $sorts, string $default
228228
{
229229
return [
230230
'type' => 'string',
231-
'description' => static::apiSortsDescription(),
232-
'enumValues' => static::apiDocAllowedSorts(),
233-
'example' => static::apiDocDefaultSort(),
231+
'description' => static::apiSortsDescription() .
232+
'<br>**Default sort:** ' . ($default_sort ? '`' . $default_sort . '`' : 'None'),
233+
'enumValues' => $sorts,
234+
'example' => $default_sort,
234235
];
235236
}
236237

0 commit comments

Comments
 (0)