Skip to content

Commit

Permalink
added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lozenko authored Mar 19, 2024
1 parent d35d8af commit 71393fb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/com/hubspot/jinjava/lib/filter/SliceFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
@JinjavaParam(
value = "slices",
type = "number",
desc = "Specifies how many items will be sliced",
desc = "Specifies how many items will be sliced." +
"Please note, the max limit is " +
SliceFilter.MAX_SLICES +
". " +
"All values above this limit will be reduced.",
required = true
),
@JinjavaParam(
Expand Down Expand Up @@ -88,7 +92,8 @@ public Object filter(Object var, JinjavaInterpreter interpreter, String... args)
TemplateError.ErrorType.WARNING,
TemplateError.ErrorReason.OVER_LIMIT,
TemplateError.ErrorItem.FILTER,
"The limit input value is too large, it's been reduced to " + MAX_SLICES,
"The limit input value of 'slices' parameter is too large, it's been reduced to " +
MAX_SLICES,
null,
interpreter.getLineNumber(),
interpreter.getPosition(),
Expand Down

0 comments on commit 71393fb

Please sign in to comment.