Skip to content

Commit

Permalink
fix(validate): no support for json output (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Apr 19, 2024
1 parent d0fadf2 commit 47fa99d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/gateway_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ var (
validateOnline bool
validateWorkspace string
validateParallelism int
validateJSONOutput bool
validateKonnectCompatibility bool
)

Expand Down Expand Up @@ -214,8 +213,6 @@ this command unless --online flag is used.
"This takes precedence over _workspace fields in state files.")
validateCmd.Flags().IntVar(&validateParallelism, "parallelism",
10, "Maximum number of concurrent requests to Kong.")
validateCmd.Flags().BoolVar(&validateJSONOutput, "json-output",
false, "generate command execution report in a JSON format")
validateCmd.Flags().BoolVar(&validateKonnectCompatibility, "konnect-compatibility",
false, "validate that the state file(s) are ready to be deployed to Konnect")

Expand Down Expand Up @@ -253,7 +250,7 @@ func getKongClient(ctx context.Context, targetContent *file.Content) (*kong.Clie
workspaceName := validateWorkspace
if validateWorkspace != "" {
// check if workspace exists
workspaceName := getWorkspaceName(validateWorkspace, targetContent, validateJSONOutput)
workspaceName := getWorkspaceName(validateWorkspace, targetContent, false)
workspaceExists, err := workspaceExists(ctx, rootConfig, workspaceName)
if err != nil {
return nil, err
Expand Down

0 comments on commit 47fa99d

Please sign in to comment.