Merge pull request #10636 from kjellwinblad/kjell/fix/mongo/max_overflow/EMQX-9714

fix: non_neg_integer() translated to minimum = 1 in bridge-api-en.json
This commit is contained in:
zhongwencool 2023-05-08 20:45:57 +08:00 committed by GitHub
commit 74d0436fbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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) ->

1
changes/ce/fix-10636.md Normal file
View File

@ -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.