Property ‘allowEmptyValue’ can be defined only for query or ‘formData’ parameters

Description

The parameter in question has the allowEmptyValue property defined, but it is not a query or a formData parameter. Only query and formData parameters can have the allowEmptyValue property defined.

For more details, see the OpenAPI Specification.

Remediation

Make sure that only query and formData parameters have the allowEmptyValue property.


Get API Security news directly in your Inbox.

By clicking Subscribe you agree to our Data Policy