Skip to content

Commit ff39e8a

Browse files
committed
updatE
1 parent 7e09b40 commit ff39e8a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/cli/internal/cli/merge/merge_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func TestInvalidFormat_PreRun(t *testing.T) {
150150

151151
err := opts.PreRunE(nil)
152152
require.Error(t, err)
153-
require.EqualError(t, err, "format must be either 'json', 'yaml' or 'all', got html")
153+
require.EqualError(t, err, "format must be either 'json', 'yaml' or 'all', got 'html'")
154154
}
155155

156156
func TestInvalidPath_PreRun(t *testing.T) {

tools/cli/internal/cli/split/split_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func TestInvalidFormat_PreRun(t *testing.T) {
172172

173173
err := opts.PreRunE(nil)
174174
require.Error(t, err)
175-
require.EqualError(t, err, "output format must be either 'json', 'yaml' or 'all', got html")
175+
require.EqualError(t, err, "format must be either 'json', 'yaml' or 'all', got 'html'")
176176
}
177177

178178
func TestInvalidPath_PreRun(t *testing.T) {

tools/cli/internal/openapi/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func Save(path string, oas *openapi3.T, format string, fs afero.Fs) error {
128128
// ValidateFormat validates the format of files supported.
129129
func ValidateFormat(format string) error {
130130
if format != JSON && format != YAML && format != ALL {
131-
return fmt.Errorf("format must be either 'json', 'yaml' or 'all', got %s", format)
131+
return fmt.Errorf("format must be either 'json', 'yaml' or 'all', got '%s'", format)
132132
}
133133

134134
return nil

0 commit comments

Comments
 (0)