Closed erezarnon closed 1 year ago
Hey @erezarnon. Thanks for the issue.
I haven't had a chance to look into this too much yet, but I'm guessing that you need to specify the allowEmptyValue
on your parameter definition. This value defaults to false
, so at first glance I believe this is what's wrong.
Here are the docs: https://spec.openapis.org/oas/latest.html#parameter-object
Let me know if this resolves the issue for you.
Yes, resolved. My googling didn't turn that up, thank you.
I'm glad that I could help out. Happy coding!
In API
parameters
definition (Notice there is notminLength
orpattern
):Call
enforcer.request({query: {q: ''}})
and receive the following errorExpected behavior: An empty string should be accepted