We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91881d9 commit a78f187Copy full SHA for a78f187
tools/cli/internal/cli/split/split.go
@@ -94,8 +94,8 @@ func (o *Opts) saveVersionedOas(oas *openapi3.T, version string) error {
94
return openapi.Save(path, oas, o.format, o.fs)
95
}
96
97
-// getVersionPath replaces file path from 'path/path.to.file/file.<json|yaml|any>'
98
-// to 'path/path.to.file/file-version.<json|yaml|any>'
+// getVersionPath replaces file path with version.
+// Example: 'path/path.to.file/file.<json|yaml|any>' to 'path/path.to.file/file-version.<json|yaml|any>'.
99
func getVersionPath(path, version string) string {
100
extIndex := strings.LastIndex(path, ".")
101
if extIndex == -1 {
0 commit comments