Skip to content

Commit 160ef38

Browse files
fixes
1 parent 8a5bb88 commit 160ef38

16 files changed

+7844
-7844
lines changed

tools/cli/internal/openapi/filter/code_sample.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func getFileExtension(format string) string {
7777

7878
func (f *CodeSampleFilter) newDigestCurlCodeSamplesForOperation(pathName, opMethod, format string) codeSample {
7979
version := apiVersion(f.metadata.targetVersion)
80-
source := "curl --include --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n " +
80+
source := "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest --include \\\n " +
8181
"--header \"Accept: application/vnd.atlas." + version + "+" + format + "\" \\\n "
8282

8383
switch opMethod {

tools/cli/internal/openapi/filter/code_sample_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func TestCodeSampleFilter(t *testing.T) {
110110
{
111111
Lang: "cURL",
112112
Label: "curl (Digest)",
113-
Source: "curl --include --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n " +
113+
Source: "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest --include \\\n " +
114114
"--header \"Accept: application/vnd.atlas.2025-01-01+json\" \\\n " + "-X GET \"https://cloud.mongodb.com/test?pretty=true\"",
115115
},
116116
},
@@ -181,7 +181,7 @@ func TestCodeSampleFilter(t *testing.T) {
181181
{
182182
Lang: "cURL",
183183
Label: "curl (Digest)",
184-
Source: "curl --include --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n " +
184+
Source: "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest --include \\\n " +
185185
"--header \"Accept: application/vnd.atlas.preview+json\" \\\n " + "-X GET \"https://cloud.mongodb.com/test?pretty=true\"",
186186
},
187187
},
@@ -252,7 +252,7 @@ func TestCodeSampleFilter(t *testing.T) {
252252
{
253253
Lang: "cURL",
254254
Label: "curl (Digest)",
255-
Source: "curl --include --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n " +
255+
Source: "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest --include \\\n " +
256256
"--header \"Accept: application/vnd.atlas.2025-01-01.upcoming+json\" \\\n " + "-X GET \"https://cloud.mongodb.com/test?pretty=true\"",
257257
},
258258
},
@@ -342,7 +342,7 @@ func TestCodeSampleFilter(t *testing.T) {
342342
{
343343
Lang: "cURL",
344344
Label: "curl (Digest)",
345-
Source: "curl --include --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest \\\n " +
345+
Source: "curl --user \"${PUBLIC_KEY}:${PRIVATE_KEY}\" \\\n --digest --include \\\n " +
346346
"--header \"Accept: application/vnd.atlas.2025-01-01+gzip\" \\\n " +
347347
"-X GET \"https://cloud.mongodb.com/test\" \\\n --output \"file_name.gz\"",
348348
},

tools/cli/test/data/split/dev/openapi-v2-2023-01-01.json

Lines changed: 337 additions & 337 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-01-01.yaml

Lines changed: 674 additions & 674 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-02-01.json

Lines changed: 349 additions & 349 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-02-01.yaml

Lines changed: 698 additions & 698 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-10-01.json

Lines changed: 363 additions & 363 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-10-01.yaml

Lines changed: 726 additions & 726 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-11-15.json

Lines changed: 376 additions & 376 deletions
Large diffs are not rendered by default.

tools/cli/test/data/split/dev/openapi-v2-2023-11-15.yaml

Lines changed: 752 additions & 752 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)