Skip to content

Commit 97aaecb

Browse files
committed
Errors
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
1 parent 225257a commit 97aaecb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

openapi3/errors.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ func (e ValidationError) Error() string {
2424
return buff.String()
2525
}
2626

27+
// Errors unwraps into much detailed errors.
28+
// See https://pkg.go.dev/github.com/xeipuuv/gojsonschema#ResultError
29+
func (e ValidationError) Errors() []gojsonschema.ResultError {
30+
return e
31+
}
32+
2733
// MultiError is a collection of errors, intended for when
2834
// multiple issues need to be reported upstream
2935
type MultiError []error

0 commit comments

Comments
 (0)