Security object needs to have defined rules in its array and rules should be defined in the securityScheme
OpenAPI uses security schemes to reference authentication and authorization schemes. Your APIs should have authentication schemes in place and documented in the OpenAPI specification, as well as applied to individual operations or the whole API in the security details.
Ensure that you have a securityScheme component and application. For example:
components: + securitySchemes: + basicAuth: + type: http + scheme: basic security: + - basicAuth: 
Updated about 1 month ago