We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e95ed34 commit ac18113Copy full SHA for ac18113
1 file changed
openapi3filter/errors.go
@@ -1,6 +1,7 @@
1
package openapi3filter
2
3
import (
4
+ "bytes"
5
"fmt"
6
7
"github.com/getkin/kin-openapi/openapi3"
@@ -78,5 +79,14 @@ type SecurityRequirementsError struct {
78
79
}
80
81
func (err *SecurityRequirementsError) Error() string {
- return "Security requirements failed"
82
+ buff := &bytes.Buffer{}
83
+ buff.WriteString("security requirements failed: ")
84
+ for i, e := range err.Errors {
85
+ buff.WriteString(e.Error())
86
+ if i != len(err.Errors)-1 {
87
+ buff.WriteString(" | ")
88
+ }
89
90
+
91
+ return buff.String()
92
0 commit comments