Skip to content

Commit

Permalink
docs(oas): add sort_flags to OpenAPI schema #646
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhendrickson13 committed Feb 7, 2025
1 parent 8045dcf commit a596b90
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,30 @@ class OpenAPISchema extends Schema {
[
'in' => 'query',
'name' => 'sort_order',
'description' => 'Sort the response data in descending order.',
'description' => 'The order to sort response data by.',
'schema' => [
'type' => 'string',
'enum' => ['SORT_ASC', 'SORT_DESC'],
'nullable' => true,
],
],
[
'in' => 'query',
'name' => 'sort_flags',
'description' => 'The sort flag to use to customize the behavior of the sort.',
'schema' => [
'type' => 'string',
'nullable' => true,
'enum' => [
'SORT_REGULAR',
'SORT_NUMERIC',
'SORT_STRING',
'SORT_LOCALE_STRING',
'SORT_NATURAL',
'SORT_FLAG_CASE'
]
],
],
[
'in' => 'query',
'name' => 'query',
Expand Down

0 comments on commit a596b90

Please sign in to comment.