You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sort parameter: actual error codes (422, 200) don't match contract (400). Invalid sort silently fall back to ascending #389
Please describe your request
During tests, I found three issues related to pagination that need clarification on which behavior is intended vs should be fixed
-`sort` - the criteria to use. Ordering is specified appending a comma and the keyword asc or desc to the criteria name (i.e. title,asc). Unknown sort criteria and/or ordering keyword produce an error response with Http Code `400`
@MMilosz : In my opinion, Issue 1 sounds like a small bug in the Rest Contract. Issue 2 and 3 could either be considered a minor bug or a contract bug. I think the current behavior is likely slightly wrong, as invalid params likely should result in an error code (either 400 or 422). But, those issues seems so very minor that I'm also OK with just documenting current behavior.
I'd welcome other ideas/thoughts here from other developers though.
Activity
tdonohue commentedon Oct 2, 2026
@MMilosz : In my opinion, Issue 1 sounds like a small bug in the Rest Contract. Issue 2 and 3 could either be considered a minor bug or a contract bug. I think the current behavior is likely slightly wrong, as invalid params likely should result in an error code (either 400 or 422). But, those issues seems so very minor that I'm also OK with just documenting current behavior.
I'd welcome other ideas/thoughts here from other developers though.