Open sepek opened 7 months ago
Describe the bug When setting nullable and minLength for a string and sending a request which does not fullfil the minLength makes the request hang
nullable
minLength
To Reproduce Just try the request again which does not fullfil the minLength
Actual behavior E.g. curl simply hangs until timeout
curl
Expected behavior Express should respond that the request doesn't fullfil the requirements.
Examples and context Having a model including a requestBody for POST containing something like that:
requestBody
POST
UserPassword: type: string minLength: 8 maxLength: 128 nullable: true default: null description: Foo example: Bar
will make Express hang if a string is provided in a request which is smaller than minLength.
Describe the bug When setting
nullable
andminLength
for a string and sending a request which does not fullfil theminLength
makes the request hangTo Reproduce Just try the request again which does not fullfil the
minLength
Actual behavior E.g.
curl
simply hangs until timeoutExpected behavior Express should respond that the request doesn't fullfil the requirements.
Examples and context Having a model including a
requestBody
forPOST
containing something like that:will make Express hang if a string is provided in a request which is smaller than
minLength
.