openapi3 icon indicating copy to clipboard operation
openapi3 copied to clipboard

openapi3 fails to parse empty securityRequirement

Open mdellweg opened this issue 5 years ago • 0 comments

The comment in https://github.com/Dorthu/openapi3/blob/master/openapi3/paths.py#L304 claims that a securityRequirement must be a dictionary with exactly one key. But https://swagger.io/specification/#securityRequirementObject specifies that "Security Requirement Objects that contain multiple schemes require that all schemes MUST be satisfied for a request to be authorized.". And it provides an Example with an empty securityRequirement ({}). This example would fail to pass in openapi3.

mdellweg avatar Aug 26 '20 11:08 mdellweg