Skip to content

Commit

Permalink
remove upper bound on document limit
Browse files Browse the repository at this point in the history
  • Loading branch information
lgessler committed Mar 29, 2022
1 parent 26d7b1a commit 9aec205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conllu_rest/routes/conllu/document.clj
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
(let [{:keys [limit offset order-by]} (-> req :parameters :query)]
(let [offset (or (and (int? offset) (>= offset 0) offset) 0)
sort-set (-> sort-map keys set)]
(cond (not (and (some? limit) (int? limit) (<= limit 100) (> limit 0)))
(bad-request (str "Limit must be an int between 1 and 100, but got " limit))
(cond (not (and (some? limit) (int? limit) (> limit 0)))
(bad-request (str "Limit must be an int greater than 0, but got " limit))

(not (and (int? offset) (>= offset 0)))
(bad-request (str "Offset must be a non-negative integer: " offset))
Expand Down

0 comments on commit 9aec205

Please sign in to comment.