Skip to content

Commit a250a7e

Browse files
fix mapping endpoing generation
Signed-off-by: Gabriele Ghio <gabriele.ghio@secomind.com>
1 parent 81c5c76 commit a250a7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/astarte/core/generators/mapping.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ defmodule Astarte.Core.Generators.Mapping do
117117
"""
118118
@spec endpoint_segment() :: StreamData.t(StreamData.t(String.t()))
119119
def endpoint_segment do
120-
gen all prefix <- string(@unix_prefix_path_chars, min_length: 1, max_length: 10),
121-
rest <- string(@unix_path_chars, min_length: 1, max_length: 10) do
120+
gen all prefix <- string(@unix_prefix_path_chars, length: 1),
121+
rest <- string(@unix_path_chars, max_length: 19) do
122122
prefix <> rest
123123
end
124124
end

0 commit comments

Comments
 (0)