Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions cmd/openapi/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package openapi
import (
"context"
"fmt"
"github.com/speakeasy-api/speakeasy/cmd/lint"
"os"
"strings"

"github.com/speakeasy-api/speakeasy/cmd/lint"

"github.com/pb33f/openapi-changes/tui"
"github.com/pkg/errors"
"github.com/speakeasy-api/sdk-gen-config/workflow"
Expand All @@ -22,6 +23,8 @@ import (

const openapiLong = "# OpenAPI \n The `openapi` command provides a set of commands for visualizing, linting and transforming OpenAPI documents."

var outputTypes = []string{"summary", "console", "html"}

var OpenAPICmd = &model.CommandGroup{
Usage: "openapi",
Short: "Utilities for working with OpenAPI documents",
Expand Down Expand Up @@ -75,8 +78,8 @@ var openapiDiffCmd = model.ExecutableCommand[OpenAPIDiffFlags]{
flag.EnumFlag{
Name: "format",
Shorthand: "f",
Description: "output format",
AllowedValues: []string{"summary", "console", "html"},
Description: fmt.Sprintf("output format (available options: %s)", outputTypes),
AllowedValues: outputTypes,
DefaultValue: "summary",
},
},
Expand Down
Loading