chore: update to API spec for new template endpoint response (#362)
This commit is contained in:
@ -81,9 +81,7 @@ func (c Client) Validate(ctx context.Context, params *ValidateParams) error {
|
||||
}
|
||||
|
||||
if apiErr, ok := err.(api.GenericOpenAPIError); ok {
|
||||
if summary, ok := apiErr.Model().(*api.TemplateSummary); ok {
|
||||
return fmt.Errorf("template failed validation:\n\t%s", summary)
|
||||
}
|
||||
return fmt.Errorf("template failed validation:\n\t%s", apiErr)
|
||||
}
|
||||
return fmt.Errorf("failed to validate template: %w", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user