From a711ee21f3fbb4dd428141b8934bbeb6d041c8a3 Mon Sep 17 00:00:00 2001 From: Kjell Winblad Date: Mon, 8 May 2023 12:38:16 +0200 Subject: [PATCH 1/2] fix: non_neg_integer() translated to minimum = 1 in bridge-api-en.json The schema type non_neg_integer() should be translated to minimum 0 and not 1 when generating the bridge-api-en.json file. Fixes: https://emqx.atlassian.net/browse/EMQX-9714 --- apps/emqx_conf/src/emqx_conf.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx_conf/src/emqx_conf.erl b/apps/emqx_conf/src/emqx_conf.erl index 6668d6424..cc56d5e46 100644 --- a/apps/emqx_conf/src/emqx_conf.erl +++ b/apps/emqx_conf/src/emqx_conf.erl @@ -311,7 +311,7 @@ typename_to_spec("float()", _Mod) -> typename_to_spec("integer()", _Mod) -> #{type => number}; typename_to_spec("non_neg_integer()", _Mod) -> - #{type => number, minimum => 1}; + #{type => number, minimum => 0}; typename_to_spec("number()", _Mod) -> #{type => number}; typename_to_spec("string()", _Mod) -> From 62570d076b1fdc6df1a4030612fb15ff4a043895 Mon Sep 17 00:00:00 2001 From: Kjell Winblad Date: Mon, 8 May 2023 12:50:31 +0200 Subject: [PATCH 2/2] docs: add change log entry --- changes/ce/fix-10636.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/ce/fix-10636.md diff --git a/changes/ce/fix-10636.md b/changes/ce/fix-10636.md new file mode 100644 index 000000000..56bf4bd7e --- /dev/null +++ b/changes/ce/fix-10636.md @@ -0,0 +1 @@ +An issue with the MongoDB connector related to the "Max Overflow" parameter has been fixed. Previously, the minimum limit for the parameter was incorrectly set to 1 instead of allowing a minimum value of 0. This issue has been fixed, and the "Max Overflow" parameter now correctly supports a minimum value of 0.