Skip to content

Commit b689725

Browse files
CLOUDP-321939: Fix curl examples for POST/PU/PATCH (#735)
1 parent 7559737 commit b689725

15 files changed

+2711
-2711
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ func (f *CodeSampleFilter) newCurlCodeSamplesForOperation(pathName, opMethod str
6666
source += "-X " + opMethod + " \"https://cloud.mongodb.com" + pathName + "\""
6767
case "POST", "PATCH", "PUT":
6868
source += "--header \"Content-Type: application/vnd.atlas." + version + "+json\" \\\n "
69-
source += "-X " + opMethod + " \"https://cloud.mongodb.com" + pathName + "\"\n "
70-
source += "-d " + "{ <Payload> }"
69+
source += "-X " + opMethod + " \"https://cloud.mongodb.com" + pathName + "\" \\\n "
70+
source += "-d " + "'{ <Payload> }'"
7171
}
7272

7373
return codeSample{

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tools/cli/test/data/split/dev/openapi-v2-2024-05-30.json

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

tools/cli/test/data/split/dev/openapi-v2-2024-05-30.yaml

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

tools/cli/test/data/split/dev/openapi-v2-2024-08-05.json

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

tools/cli/test/data/split/dev/openapi-v2-2024-08-05.yaml

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

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

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

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

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

0 commit comments

Comments
 (0)