Skip to content

Throw Exception on Invalid Order Filter Query #2030

Description

@mab05k

When using the Order Filters, the syntax is order[field]=<asc|desc>.

Right now, if a user submits this query with something invalid, like order[field]=true, the filter is not applied and the User has no idea why his response is not ordered as expected.

Can we issue a 400 Response when a value other than asc, desc, or '' are sent in the query?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions