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
match-coll
I know the title is broad and unspecific.
I tried this snippet from the README and it doesn't work:
Routes can be constrained by request methods.
(def api-routes (silk/routes {:api-data [["api"] {"limit" (silk/? (silk/int :limit) {:limit 100}) "offset" (silk/? (silk/int :offset) {:offset 0})} (serve/POST)]})) (silk/match api-routes {:path ["api"]}) ;=> nil (silk/match api-routes {:path ["api"] :request-method :post}) ;=> {:limit 100, :offset 0, :domkm.silk/name :api-data, ...}
Last silk/match call also returned nil.
silk/match
nil
I debugged the error for a while, and narrowed it down to match-coll, but I'm not sure exactly what could be happening there.
I'm posting this here so we can discuss way to fix it, and I'll be happy to submit a PR if some guidance is provided.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I know the title is broad and unspecific.
I tried this snippet from the README and it doesn't work:
Routes can be constrained by request methods.
Last
silk/match
call also returnednil
.I debugged the error for a while, and narrowed it down to
match-coll
, but I'm not sure exactly what could be happening there.I'm posting this here so we can discuss way to fix it, and I'll be happy to submit a PR if some guidance is provided.
The text was updated successfully, but these errors were encountered: