You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parser erroniously expects security requirement object to be dict instead of list when applied on openapi object. According to the openapi 3 docs the security field should be a list of security requirement object but when parsed with openapi3 I get the following error:
[SpecError("Expected .security to be one of [<class 'dict'>], got <class 'list'>",)]
The parser erroniously expects security requirement object to be dict instead of list when applied on openapi object. According to the openapi 3 docs the
security
field should be a list ofsecurity requirement object
but when parsed withopenapi3
I get the following error:[SpecError("Expected .security to be one of [<class 'dict'>], got <class 'list'>",)]
Example
using 'spec.yaml` below:
This snippet will produce the error:
If the
security
field is under anoperation
objectopenapi3
correctly expects it to hold a list ofsecurity requirement object
.The text was updated successfully, but these errors were encountered: