mirror of
https://github.com/containers/podman.git
synced 2025-11-30 18:18:18 +08:00
Update module github.com/go-swagger/go-swagger to v0.32.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
6
test/tools/vendor/github.com/go-openapi/errors/schema.go
generated
vendored
6
test/tools/vendor/github.com/go-openapi/errors/schema.go
generated
vendored
@@ -120,6 +120,10 @@ func (c *CompositeError) Error() string {
|
||||
return c.message
|
||||
}
|
||||
|
||||
func (c *CompositeError) Unwrap() []error {
|
||||
return c.Errors
|
||||
}
|
||||
|
||||
// MarshalJSON implements the JSON encoding interface
|
||||
func (c CompositeError) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(map[string]interface{}{
|
||||
@@ -133,7 +137,7 @@ func (c CompositeError) MarshalJSON() ([]byte, error) {
|
||||
func CompositeValidationError(errors ...error) *CompositeError {
|
||||
return &CompositeError{
|
||||
code: CompositeErrorCode,
|
||||
Errors: append([]error{}, errors...),
|
||||
Errors: append(make([]error, 0, len(errors)), errors...),
|
||||
message: "validation failure list",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user