Skip to content

Commit

Permalink
Merge pull request #11118 from fix/EMQX-9964/bump-hocon
Browse files Browse the repository at this point in the history
chore: bump hocon to 0.39.10
  • Loading branch information
keynslug committed Jun 21, 2023
2 parents c76fa41 + 01db56c commit 62b832b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/emqx/rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{esockd, {git, "https://github.com/emqx/esockd", {tag, "5.9.6"}}},
{ekka, {git, "https://github.com/emqx/ekka", {tag, "0.15.2"}}},
{gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.8.1"}}},
{hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.39.9"}}},
{hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.39.10"}}},
{emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.5.2"}}},
{pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {tag, "2.0.4"}}},
{recon, {git, "https://github.com/ferd/recon", {tag, "2.5.1"}}},
Expand Down
2 changes: 1 addition & 1 deletion apps/emqx/test/emqx_schema_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ssl_opts_version_gap_test_() ->

ssl_opts_cert_depth_test() ->
Sc = emqx_schema:server_ssl_opts_schema(#{}, false),
Reason = #{expected_type => "non_neg_integer()"},
Reason = #{expected => "non_neg_integer()"},
?assertThrow(
{_Sc, [#{kind := validation_error, reason := Reason}]},
validate(Sc, #{<<"depth">> => -1})
Expand Down
2 changes: 1 addition & 1 deletion apps/emqx_conf/test/emqx_conf_schema_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ log_rotation_count_limit_test() ->
mismatches := #{"handler_name" :=
#{kind := validation_error,
path := "log.file.default.rotation_count",
reason := #{expected_type := "1..128"},
reason := #{expected := "1..128"},
value := Count}
}}]},
hocon_tconf:generate(emqx_conf_schema, ConfMap0))
Expand Down
2 changes: 1 addition & 1 deletion apps/emqx_resource/test/emqx_resource_schema_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ worker_pool_size_test_() ->
{_, [
#{
kind := validation_error,
reason := #{expected_type := _},
reason := #{expected := _},
value := WorkerPoolSize
}
]},
Expand Down
1 change: 1 addition & 0 deletions changes/ce/fix-11118.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure that validation errors in REST API responses are slightly less confusing. Now, if there are out-of-range errors, they will be presented as `{"value": 42, "reason": {"expected": "1..10"}, ...}`, replacing the previous usage of `expected_type` with `expected`.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ t_avro_invalid_json_schema(_Config) ->
Params = schema_params(avro),
WrongParams = Params#{source := <<"{">>},
?assertMatch(
{error, #{reason := #{expected_type := _}}},
{error, #{reason := #{expected := _}}},
emqx_ee_schema_registry:add_schema(SerdeName, WrongParams)
),
ok.
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ defmodule EMQXUmbrella.MixProject do
# in conflict by emqtt and hocon
{:getopt, "1.0.2", override: true},
{:snabbkaffe, github: "kafka4beam/snabbkaffe", tag: "1.0.8", override: true},
{:hocon, github: "emqx/hocon", tag: "0.39.9", override: true},
{:hocon, github: "emqx/hocon", tag: "0.39.10", override: true},
{:emqx_http_lib, github: "emqx/emqx_http_lib", tag: "0.5.2", override: true},
{:esasl, github: "emqx/esasl", tag: "0.2.0"},
{:jose, github: "potatosalad/erlang-jose", tag: "1.11.2"},
Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
, {system_monitor, {git, "https://github.com/ieQu1/system_monitor", {tag, "3.0.3"}}}
, {getopt, "1.0.2"}
, {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "1.0.8"}}}
, {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.39.9"}}}
, {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.39.10"}}}
, {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.5.2"}}}
, {esasl, {git, "https://github.com/emqx/esasl", {tag, "0.2.0"}}}
, {jose, {git, "https://github.com/potatosalad/erlang-jose", {tag, "1.11.2"}}}
Expand Down

0 comments on commit 62b832b

Please sign in to comment.