Skip to content

Commit 7184c2c

Browse files
committed
style: fix indentation
1 parent a0d7e71 commit 7184c2c

File tree

1 file changed

+23
-25
lines changed

1 file changed

+23
-25
lines changed

cmd/file_openapi2kong.go

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ import (
1313
)
1414

1515
var (
16-
cmdO2KinputFilename string
17-
cmdO2KoutputFilename string
18-
cmdO2KdocName string
19-
cmdO2KoutputFormat string
20-
cmdO2KentityTags []string
21-
cmdO2KskipID bool
22-
cmdO2KinsoCompat bool
23-
cmdO2Ksecurity bool
24-
cmdO2KignoreSecurityError bool
25-
cmdO2KignoreCircularRefs bool
16+
cmdO2KinputFilename string
17+
cmdO2KoutputFilename string
18+
cmdO2KdocName string
19+
cmdO2KoutputFormat string
20+
cmdO2KentityTags []string
21+
cmdO2KskipID bool
22+
cmdO2KinsoCompat bool
23+
cmdO2Ksecurity bool
24+
cmdO2KignoreSecurityError bool
25+
cmdO2KignoreCircularRefs bool
2626
)
2727

2828
// Executes the CLI command "openapi2kong"
@@ -40,15 +40,15 @@ func executeOpenapi2Kong(cmd *cobra.Command, _ []string) error {
4040
if cmdO2KinsoCompat {
4141
cmdO2KskipID = true // this is implicit in inso compatibility mode
4242
}
43-
options := openapi2kong.O2kOptions{
44-
Tags: cmdO2KentityTags,
45-
DocName: cmdO2KdocName,
46-
SkipID: cmdO2KskipID,
47-
InsoCompat: cmdO2KinsoCompat,
48-
OIDC: cmdO2Ksecurity,
49-
IgnoreSecurityErrors: cmdO2KignoreSecurityError,
50-
IgnoreCircularRefs: cmdO2KignoreCircularRefs,
51-
}
43+
options := openapi2kong.O2kOptions{
44+
Tags: cmdO2KentityTags,
45+
DocName: cmdO2KdocName,
46+
SkipID: cmdO2KskipID,
47+
InsoCompat: cmdO2KinsoCompat,
48+
OIDC: cmdO2Ksecurity,
49+
IgnoreSecurityErrors: cmdO2KignoreSecurityError,
50+
IgnoreCircularRefs: cmdO2KignoreCircularRefs,
51+
}
5252

5353
trackInfo := deckformat.HistoryNewEntry("openapi2kong")
5454
trackInfo["input"] = cmdO2KinputFilename
@@ -111,12 +111,10 @@ The output will be targeted at Kong version 3.x.
111111
"the same, and no 'id' fields will be generated.")
112112
openapi2kongCmd.Flags().BoolVarP(&cmdO2Ksecurity, "generate-security", "", false, "generate OpenIDConnect plugins "+
113113
"from the security directives")
114-
115-
openapi2kongCmd.Flags().BoolVarP(&cmdO2KignoreSecurityError, "ignore-security-errors", "", false,
116-
"ignore errors for unsupported security schemes")
117-
118-
openapi2kongCmd.Flags().BoolVar(&cmdO2KignoreCircularRefs, "ignore-circular-refs", false,
119-
"ignore circular $ref errors in the OpenAPI spec (dangerous, use with caution)")
114+
openapi2kongCmd.Flags().BoolVarP(&cmdO2KignoreSecurityError, "ignore-security-errors", "", false,
115+
"ignore errors for unsupported security schemes")
116+
openapi2kongCmd.Flags().BoolVar(&cmdO2KignoreCircularRefs, "ignore-circular-refs", false,
117+
"ignore circular $ref errors in the OpenAPI spec (dangerous, use with caution)")
120118

121119
return openapi2kongCmd
122120
}

0 commit comments

Comments
 (0)