When security is present, even with empty content (like "security": []), the generator takes the operation as secured (which is wrong since there is no security definition) and makes the authentication mandatory in order to perform the request.
Solution
Evaluate each security definition to validate that the keys exist at securityDefinitions property, taking root's security as the default value.
Problem
When
security
is present, even with empty content (like"security": []
), the generator takes the operation as secured (which is wrong since there is no security definition) and makes the authentication mandatory in order to perform the request.Solution
Evaluate each
security
definition to validate that the keys exist atsecurityDefinitions
property, taking root'ssecurity
as the default value.