We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.0-alpha27
Given a route like
(api/GET "/foo" [] {:responses {status/ok {:schema ::int-list}}} (response/ok (list 1 2 3)))
with a spec like
(s/def ::int-list (su/spec (s/coll-of int?) {}))
the response returns the collection is reversed order:
$ curl -X GET --header 'Accept: application/json' 'http://localhost:8003/foo' [3,2,1]
With version 2.0.0-alpha26 and earlier the collection keeps its original order:
$ curl -X GET --header 'Accept: application/json' 'http://localhost:8003/foo' [1,2,3]
The text was updated successfully, but these errors were encountered:
sorry for the lag, this is a bug.
Sorry, something went wrong.
Coercion doesn't reverse collections,
cb3e22b
fixes metosin/compojure-api#406
found a fix for this in spec-tools.
Successfully merging a pull request may close this issue.
Library Version(s)
2.0.0-alpha27
Problem
Given a route like
with a spec like
the response returns the collection is reversed order:
With version 2.0.0-alpha26 and earlier the collection keeps its original order:
The text was updated successfully, but these errors were encountered: