Skip to content

Commit

Permalink
Addressed issue #81
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <[email protected]>
  • Loading branch information
daveshanley committed Jan 26, 2024
1 parent 4bbcb26 commit 7faf19e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mock/mock_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ func (rme *ResponseMockEngine) GenerateResponse(request *http.Request) ([]byte,

func (rme *ResponseMockEngine) ValidateSecurity(request *http.Request, operation *v3.Operation) error {
// get out early if there is nothing to do.
if rme.doc.Components.SecuritySchemes.Len() <= 0 {

if rme.doc.Components != nil && rme.doc.Components.SecuritySchemes.Len() <= 0 {
return nil
}

Expand Down

0 comments on commit 7faf19e

Please sign in to comment.