diff --git a/.github/workflows/seed.yml b/.github/workflows/seed.yml index 73b9f1e71ce..1aa2de54a8a 100644 --- a/.github/workflows/seed.yml +++ b/.github/workflows/seed.yml @@ -38,6 +38,7 @@ jobs: - 'packages/seed/**' - 'test-definitions/**' - 'packages/ir-sdk/fern/apis/**' + - 'packages/cli/generation/ir-generator/**' ruby: - 'generators/ruby/**' - seed/ruby-sdk/seed.yml diff --git a/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap b/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap index 76dac1662f2..da93b7dfe96 100644 --- a/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap @@ -847,4 +847,4 @@ exports[`dependencies correctly incorporates dependencies 1`] = ` }" `; -exports[`dependencies file dependencies 1`] = `3030147`; +exports[`dependencies file dependencies 1`] = `3030381`; diff --git a/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap b/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap index 42085e13a78..c5e7a955ae3 100644 --- a/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap @@ -1690,7 +1690,7 @@ exports[`ir {"name":"file-upload"} 1`] = ` "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/movies", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -1706,7 +1706,7 @@ exports[`ir {"name":"file-upload"} 1`] = ` "value": null } }, - "id": "d6c6ed9738b2481b8cf22457a7bb62b68d6eedde", + "id": "2d9028cedc3afcbd39cbb0c21b9674b32c7e66fe", "docs": null } } @@ -10257,7 +10257,7 @@ exports[`ir {"name":"nested-example-reference"} 1`] = ` "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/nested", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -10870,7 +10870,7 @@ exports[`ir {"name":"nested-example-reference"} 1`] = ` } } }, - "id": "502bf7755f833e48ae48531b542f1cd503a7b780", + "id": "dbc628efc9741a6d3a6e5d0a140f62613e3acd6e", "docs": null } } @@ -14532,7 +14532,7 @@ exports[`ir {"name":"simple","audiences":["internal"]} 1`] = ` "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/test/string/movies", "rootPathParameters": [ { "name": { @@ -14773,13 +14773,13 @@ exports[`ir {"name":"simple","audiences":["internal"]} 1`] = ` } } }, - "id": "ef55921c2173ec7f026ea0c5ed1e73ce4371c1fd", + "id": "a16b5fde1f41adf2cb5c8aef09c71491b1782ac3", "docs": null } }, { "example": { - "url": "", + "url": "/test/string/movies", "rootPathParameters": [ { "name": { @@ -15071,7 +15071,7 @@ exports[`ir {"name":"simple","audiences":["internal"]} 1`] = ` }, "body": null }, - "id": "f447124c971fe3cf94eb6c7da30cec9c75304b19", + "id": "3e6163938ad55cceb9b6fb6b3d4457481e1194d9", "docs": null } } @@ -17686,7 +17686,7 @@ exports[`ir {"name":"simple","audiences":["test"]} 1`] = ` "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/test/string/movies", "rootPathParameters": [ { "name": { @@ -18162,13 +18162,13 @@ exports[`ir {"name":"simple","audiences":["test"]} 1`] = ` } } }, - "id": "03395fba516497b49a949e2da9ac92ec2832c174", + "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", "docs": null } }, { "example": { - "url": "", + "url": "/test/string/movies", "rootPathParameters": [ { "name": { @@ -18644,13 +18644,13 @@ exports[`ir {"name":"simple","audiences":["test"]} 1`] = ` } } }, - "id": "03395fba516497b49a949e2da9ac92ec2832c174", + "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", "docs": null } }, { "example": { - "url": "", + "url": "/test/string/movies", "rootPathParameters": [ { "name": { @@ -19103,7 +19103,7 @@ exports[`ir {"name":"simple","audiences":["test"]} 1`] = ` }, "body": null }, - "id": "c69afea5fa058c61232f777fae73d341324d87cc", + "id": "7719d117aa55b7a0a06be30825cd95761e68b931", "docs": null } } @@ -26618,7 +26618,7 @@ exports[`ir {"name":"simple"} 1`] = ` "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/test/string/movies", "rootPathParameters": [ { "name": { @@ -26859,13 +26859,13 @@ exports[`ir {"name":"simple"} 1`] = ` } } }, - "id": "ef55921c2173ec7f026ea0c5ed1e73ce4371c1fd", + "id": "a16b5fde1f41adf2cb5c8aef09c71491b1782ac3", "docs": null } }, { "example": { - "url": "", + "url": "/test/string/movies", "rootPathParameters": [ { "name": { @@ -27157,7 +27157,7 @@ exports[`ir {"name":"simple"} 1`] = ` }, "body": null }, - "id": "f447124c971fe3cf94eb6c7da30cec9c75304b19", + "id": "3e6163938ad55cceb9b6fb6b3d4457481e1194d9", "docs": null } } @@ -28523,7 +28523,7 @@ exports[`ir {"name":"simple"} 1`] = ` "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/test/string/movies", "rootPathParameters": [ { "name": { @@ -28999,13 +28999,13 @@ exports[`ir {"name":"simple"} 1`] = ` } } }, - "id": "03395fba516497b49a949e2da9ac92ec2832c174", + "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", "docs": null } }, { "example": { - "url": "", + "url": "/test/string/movies", "rootPathParameters": [ { "name": { @@ -29481,13 +29481,13 @@ exports[`ir {"name":"simple"} 1`] = ` } } }, - "id": "03395fba516497b49a949e2da9ac92ec2832c174", + "id": "181d939e789eb0d29f2bb5cccfc5375ed039cd37", "docs": null } }, { "example": { - "url": "", + "url": "/test/string/movies", "rootPathParameters": [ { "name": { @@ -29940,7 +29940,7 @@ exports[`ir {"name":"simple"} 1`] = ` }, "body": null }, - "id": "c69afea5fa058c61232f777fae73d341324d87cc", + "id": "7719d117aa55b7a0a06be30825cd95761e68b931", "docs": null } } @@ -31477,7 +31477,7 @@ exports[`ir {"name":"simple"} 1`] = ` "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/test/string/movies/id1", "rootPathParameters": [ { "name": { @@ -32126,13 +32126,13 @@ exports[`ir {"name":"simple"} 1`] = ` } } }, - "id": "a7b26d6f275b3036c567bd7b673bcb03f8e418de", + "id": "c31d0a00f664df9938064fde5ab39352e548bd05", "docs": null } }, { "example": { - "url": "/", + "url": "/test/string/movies/id1", "rootPathParameters": [ { "name": { @@ -32781,13 +32781,13 @@ exports[`ir {"name":"simple"} 1`] = ` } } }, - "id": "4f346c67d013ddf25fb1055e2af93e019a886aa1", + "id": "1be4f34f8b77401ebd38f067fb5e87c0c4053a6e", "docs": null } }, { "example": { - "url": "/", + "url": "/test/string/movies/id1", "rootPathParameters": [ { "name": { @@ -33044,13 +33044,13 @@ exports[`ir {"name":"simple"} 1`] = ` }, "body": null }, - "id": "3a5ac4231657544a7965588cbd8e99932e082700", + "id": "b1abc4b36c6b66836558d64000446b6bb9f3a8bd", "docs": null } }, { "example": { - "url": "/", + "url": "/test/string/movies/id1", "rootPathParameters": [ { "name": { @@ -33307,7 +33307,7 @@ exports[`ir {"name":"simple"} 1`] = ` }, "body": null }, - "id": "fc1b69bd3ef039c3daf8119cfcce2c56182df287", + "id": "0a1b7d4c2ef7232675d53dd288caf70cdd8fbb23", "docs": null } } @@ -33669,7 +33669,7 @@ exports[`ir {"name":"simple"} 1`] = ` "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/test/string/movies/id1", "rootPathParameters": [ { "name": { @@ -33827,13 +33827,13 @@ exports[`ir {"name":"simple"} 1`] = ` "value": null } }, - "id": "08c111f715f4618742ddeed3525866980c367442", + "id": "bce9a848a5f585213943006d1ff84e3ee794eb7b", "docs": null } }, { "example": { - "url": "/", + "url": "/test/string/movies/id1", "rootPathParameters": [ { "name": { @@ -34053,7 +34053,7 @@ exports[`ir {"name":"simple"} 1`] = ` }, "body": null }, - "id": "0aab585c6e8f4d09be98fd53cbd0045e27e08170", + "id": "d3b0bcb695d15a97459cd0cbff875b2c73a87657", "docs": null } } @@ -34646,7 +34646,7 @@ exports[`ir {"name":"streaming"} 1`] = ` "autogeneratedExamples": [ { "example": { - "url": "/streaming", + "url": "/movies/streaming", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -34687,7 +34687,7 @@ exports[`ir {"name":"streaming"} 1`] = ` ] } }, - "id": "e6e92437e479e10ebdaa379af7af4fe706540e28", + "id": "28aec953dfec1f2528cfffd051a0dd52a94babf7", "docs": null } } @@ -34884,7 +34884,7 @@ exports[`ir {"name":"streaming"} 1`] = ` "autogeneratedExamples": [ { "example": { - "url": "/maybe-streaming", + "url": "/movies/maybe-streaming", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -34967,7 +34967,7 @@ exports[`ir {"name":"streaming"} 1`] = ` ] } }, - "id": "498c93cea5dbe8c50c1c68bce17925f86ed929fb", + "id": "971e543e8647d0710fbcc981703bc932529d4af9", "docs": null } } @@ -35653,7 +35653,7 @@ exports[`ir {"name":"variables"} 1`] = ` "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/string/movies/string", "rootPathParameters": [ { "name": { @@ -35885,7 +35885,7 @@ exports[`ir {"name":"variables"} 1`] = ` "value": null } }, - "id": "f79b999f1a5dee31622bbf3e6f0d65c7a8703a7e", + "id": "382cb8d2bcec5a9757159c7febf6c28785994c8d", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json b/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json index 26c98c1014c..97d86a0176a 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json @@ -748,7 +748,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/create-movie", + "url": "/movies/create-movie", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -1128,7 +1128,7 @@ } } }, - "id": "9c48a68c861fcde768d5bd494182ee29b48dc650", + "id": "0fd01d62bca0126c84c6dae0eb32bd903b886a36", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json index b4cefac4e65..9b113bf9406 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json @@ -1159,7 +1159,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/create-movie", + "url": "/movies/create-movie", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -1539,7 +1539,7 @@ } } }, - "id": "9c48a68c861fcde768d5bd494182ee29b48dc650", + "id": "0fd01d62bca0126c84c6dae0eb32bd903b886a36", "docs": null } } @@ -2800,7 +2800,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/movies/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -3378,13 +3378,13 @@ } } }, - "id": "ba742975f9bc71366d46b57d35a716bbe21892da", + "id": "2fbbd1d9a47777de004873d1c386e0e010f84d09", "docs": null } }, { "example": { - "url": "/", + "url": "/movies/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -3962,13 +3962,13 @@ } } }, - "id": "6ca389038cc999a8a30c244831e4889f1acc6e7f", + "id": "bddb18e0df4a21ec0a1d0f2de6f81effa3fe4a52", "docs": null } }, { "example": { - "url": "/", + "url": "/movies/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -4154,7 +4154,7 @@ }, "body": null }, - "id": "b5cb856c7af35051001932ae7444a503197b2a37", + "id": "caa8c82f67c291fe8638d9e341d06b605b1958c0", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json index 60e398e0cfa..8e1dbda42fa 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json @@ -1000,7 +1000,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/extended-inline-request-body", + "url": "/extends/extended-inline-request-body", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -1124,7 +1124,7 @@ "value": null } }, - "id": "9db0e06195b20a6e69296689bce595a56515cdf6", + "id": "2aae178dd3a5b6259e23f15455b2a5778d924838", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json index fbe84bd6850..d424a6fefd3 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json @@ -982,7 +982,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/type-kaljhv87", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -1068,7 +1068,7 @@ "value": null } }, - "id": "bd5b4c8c347f4c7c33db01bcd23a51f5325101f0", + "id": "60f447c9c604e52bd229506a8e8d18775ca13261", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json index ec0cb6a816c..facef34f1bd 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json @@ -415,7 +415,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/test/string/string/1/string", "rootPathParameters": [ { "name": { @@ -564,7 +564,7 @@ "value": null } }, - "id": "d1240755d4fcd0e4791ccb3ba023d1ac451faa0b", + "id": "6b9ceb20a19eba83fa97fae8168773540db154af", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json index 675684cb52d..0acc153f626 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json @@ -2570,7 +2570,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/path/", + "url": "/path/>/>/red/red", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -3055,7 +3055,7 @@ "value": null } }, - "id": "c1548de72a250d65504ad45dc16ca97c778b2899", + "id": "2b72b39a0e4680a410f3497bf6398a4ee14229ca", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json index bd99d20eed5..b56b1a80828 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json @@ -20941,7 +20941,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/file/notification/string", "rootPathParameters": [], "servicePathParameters": [ { @@ -21426,7 +21426,7 @@ } } }, - "id": "8267941fb9faada6d04279d1024484e2b159bac7", + "id": "0ab1bbdbe7092554a8727778d360b3ecaaf0ca5b", "docs": null } } @@ -22074,7 +22074,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/file/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -22441,13 +22441,13 @@ } } }, - "id": "617177e12e7c40c085caf4e6d64bf58243453131", + "id": "5a878fa477bcb2b250598ad8402d31d9acb7d503", "docs": null } }, { "example": { - "url": "/", + "url": "/file/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -22596,7 +22596,7 @@ }, "body": null }, - "id": "90cf5c8e84f025495f6dbf59506df3bcef4b75f7", + "id": "5beb5b0c84b51e07b25e483cd383a5631c4514ad", "docs": null } } @@ -22983,7 +22983,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/check/", + "url": "/check/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -23033,13 +23033,13 @@ "value": null } }, - "id": "167792918daff89ff3fe9e97af4a0644a7ba69bb", + "id": "15c71575f379fb044c22d12105428d0a224817b8", "docs": null } }, { "example": { - "url": "/check/", + "url": "/check/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -23089,7 +23089,7 @@ "value": null } }, - "id": "167792918daff89ff3fe9e97af4a0644a7ba69bb", + "id": "15c71575f379fb044c22d12105428d0a224817b8", "docs": null } } @@ -25096,7 +25096,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/movie/", + "url": "/movie/movie-c06a4ad7", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -26563,7 +26563,7 @@ } } }, - "id": "80eabb242e924ed2302f4dcbd4e6f2a08845b26b", + "id": "e239592247527a8ef69600cd4147a7369a827613", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json index 65ff493c001..d9f499532f8 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json @@ -5026,7 +5026,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/list-of-primitives", + "url": "/container/list-of-primitives", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -5113,7 +5113,7 @@ } } }, - "id": "543eb6e50d90ab5f3f6435ccad103a71bdf48892", + "id": "9e61b4eaccb4afd443c726c32886cb50c45ff48a", "docs": null } } @@ -5549,7 +5549,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/list-of-objects", + "url": "/container/list-of-objects", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -6322,7 +6322,7 @@ } } }, - "id": "7ee06dd62232f1cdd390bac20a4b8b2dcfe44749", + "id": "38cb4e72f416b560b14832cd41e33de5b06b8016", "docs": null } } @@ -6470,7 +6470,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/set-of-primitives", + "url": "/container/set-of-primitives", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -6557,7 +6557,7 @@ } } }, - "id": "643509fa43e3cb1909f3f2d33a233da6d869883a", + "id": "db55d3a5737f47a2c92b4ea46ac375e91c42409b", "docs": null } } @@ -6993,7 +6993,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/set-of-objects", + "url": "/container/set-of-objects", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -7766,7 +7766,7 @@ } } }, - "id": "df9ee8100dd6bcac8d3fed6e6ce1582a4b61e348", + "id": "9bfe61d4e87ebb42c01efacfa7aaeb8e2c65eaf6", "docs": null } } @@ -7947,7 +7947,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/map-prim-to-prim", + "url": "/container/map-prim-to-prim", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -8084,7 +8084,7 @@ } } }, - "id": "2bff8dc089b58a7c79c99c15e28585d65d859e6a", + "id": "7387ba0eadd8a67b5142447dfbd373bb7e4a1317", "docs": null } } @@ -8553,7 +8553,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/map-prim-to-object", + "url": "/container/map-prim-to-object", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -9376,7 +9376,7 @@ } } }, - "id": "cb1999e2ad60701c8d94498ccbbf87ce7b90c7f5", + "id": "a82c26a11fdfb9622ec3f159c19a9781b4280e7f", "docs": null } } @@ -9812,7 +9812,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/opt-objects", + "url": "/container/opt-objects", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -10577,7 +10577,7 @@ } } }, - "id": "f9b9d09ff170b7c00506948666c1a3efd0fec0a4", + "id": "a01d3f32e9ca15393dd86d492fded701376a6a09", "docs": null } } @@ -11091,7 +11091,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/enum", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -11376,7 +11376,7 @@ } } }, - "id": "e85c9811d5010fb57eb17d128eec953d5a2badb9", + "id": "ec206c56bb0e72aa84c18e96e43ebdb16ba38234", "docs": null } } @@ -11629,7 +11629,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/http-methods/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -11690,7 +11690,7 @@ } } }, - "id": "66d3554c7f2ee154e963e2f50284ee07de7a38d4", + "id": "e37e2de87d4a3c39184cf84aaa8d7a3fdb6eaaa0", "docs": null } } @@ -12108,7 +12108,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/http-methods", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -14683,7 +14683,7 @@ } } }, - "id": "8012d674ce16bdb0c20551c1c588aa4444d8990f", + "id": "738134e6586dbc0207e6ba58c85fef176d43ae93", "docs": null } } @@ -15183,7 +15183,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/http-methods/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -17792,7 +17792,7 @@ } } }, - "id": "fa543750d70da3ab44fe4d03ce5e621f5a206cad", + "id": "16651e2f1a130fc2a16419e57c40aef17fe8ae3e", "docs": null } } @@ -18292,7 +18292,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/http-methods/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -22947,7 +22947,7 @@ } } }, - "id": "bf6e316e2ed5ec76b79375cf183c7791ae9fa945", + "id": "52763d0dc78eaaf3c7947f360482cced832bdcac", "docs": null } } @@ -23100,7 +23100,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/http-methods/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -23159,7 +23159,7 @@ } } }, - "id": "f7c1915cec364e37b8f067919769fd7350de3ecc", + "id": "ca609f6052a98dc71f5169f9898af22a72f17e47", "docs": null } } @@ -23673,7 +23673,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/get-and-return-with-optional-field", + "url": "/object/get-and-return-with-optional-field", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -28294,7 +28294,7 @@ } } }, - "id": "140f6d87e111924c64b9755c5605330fd65129d6", + "id": "03901c9674d7ed67349cd17ed86410adf32bdeee", "docs": null } } @@ -28712,7 +28712,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/get-and-return-with-required-field", + "url": "/object/get-and-return-with-required-field", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -29241,7 +29241,7 @@ } } }, - "id": "6eadadd88be7fadc78f088a39b386463c0ab1c44", + "id": "0775a5ca950e2e2a5875885f220ccb983a2a898d", "docs": null } } @@ -29659,7 +29659,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/get-and-return-with-map-of-map", + "url": "/object/get-and-return-with-map-of-map", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -30430,7 +30430,7 @@ } } }, - "id": "aa42fb26d48aeb3c5984cc1938635ec37c5c3a29", + "id": "62bb8b4081f029aa2eb461c4fb3798b47a945521", "docs": null } } @@ -30848,7 +30848,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/get-and-return-nested-with-optional-field", + "url": "/object/get-and-return-nested-with-optional-field", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -36593,7 +36593,7 @@ } } }, - "id": "e03d2529ca3e683c27a6e22a69285f0072d6bd78", + "id": "ba1c6af79ff3d6509c29de02cb5716253b6cde29", "docs": null } } @@ -37093,7 +37093,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/get-and-return-nested-with-required-field/", + "url": "/object/get-and-return-nested-with-required-field/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -42560,7 +42560,7 @@ } } }, - "id": "035ec51091a46f6f56aa881c04e66d2b5ce20c60", + "id": "3461f31974590943e06af9285a8f7a3913d1e320", "docs": null } } @@ -42990,7 +42990,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/get-and-return-nested-with-required-field-list", + "url": "/object/get-and-return-nested-with-required-field-list", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -48566,7 +48566,7 @@ } } }, - "id": "227b063d7feba3a1e24d9339d550fce4228ed453", + "id": "e9808f6d64533733179c906748cd82671c26c079", "docs": null } } @@ -48819,7 +48819,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/path/", + "url": "/params/path/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -48880,7 +48880,7 @@ } } }, - "id": "110be7daff8279233eb6c321c33a01dc11fec916", + "id": "ffb25a17c6e1629d8ed669b2a6d406c02966a175", "docs": null } } @@ -49077,7 +49077,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/params", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -49164,7 +49164,7 @@ "value": null } }, - "id": "947a7f641adf454421422ac1ab53aee8215159c1", + "id": "f5931ae8f96a427c9d8af9ef0e0739a39345c968", "docs": null } } @@ -49361,7 +49361,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/params", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -49448,7 +49448,7 @@ "value": null } }, - "id": "4aa5af5485dfa7d6698737f47b3c01bb15cce0a5", + "id": "65d06651b6297bbaad6b0839321b73130e7933d1", "docs": null } } @@ -49689,7 +49689,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/path-query/", + "url": "/params/path-query/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -49776,7 +49776,7 @@ "value": null } }, - "id": "92dcd303d3e0d23a782e63876f02941c6554a018", + "id": "4a4b187fc9a32caf229af485f4b70dac8bee6bb8", "docs": null } } @@ -49988,7 +49988,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/path/", + "url": "/params/path/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -50061,7 +50061,7 @@ } } }, - "id": "0a3fcb09d91afb32705d15a92c3fbefdffa7fbaa", + "id": "efda7765297eed52dd79c08b95aa3996d567b37e", "docs": null } } @@ -50287,7 +50287,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/string", + "url": "/primitive/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -50326,7 +50326,7 @@ } } }, - "id": "3bfb0a1091c3f584170991e0ee9cb639f9cbd111", + "id": "2da98c0ca88f4f6097af609ad385898824d2c8e3", "docs": null } } @@ -50456,7 +50456,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/integer", + "url": "/primitive/integer", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -50491,7 +50491,7 @@ } } }, - "id": "8ca1b5353a25d7cdc155c51e85e597615a5c31ca", + "id": "35cc89496c6318b2f9750a6131530b99c8489145", "docs": null } } @@ -50609,7 +50609,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/long", + "url": "/primitive/long", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -50644,7 +50644,7 @@ } } }, - "id": "821b23136d472fa1183e207bb28a3b0296e8cf0d", + "id": "4695d009257d81e749f88cb618f3d7683f43fe9e", "docs": null } } @@ -50774,7 +50774,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/double", + "url": "/primitive/double", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -50809,7 +50809,7 @@ } } }, - "id": "a5ab234d59fbbe6e706dcda0ef19a0ce7cd3ed32", + "id": "3ea2f9d356675d0cbe1817f4b22afaa8345e7d7a", "docs": null } } @@ -50927,7 +50927,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/boolean", + "url": "/primitive/boolean", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -50962,7 +50962,7 @@ } } }, - "id": "e4213c54a6ccd953e98560c7ca9ee03443de144d", + "id": "d3599d7abf4beabb2964665128614e7f5508cc96", "docs": null } } @@ -51080,7 +51080,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/datetime", + "url": "/primitive/datetime", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -51115,7 +51115,7 @@ } } }, - "id": "9d741668c1213b5b7319743f0eca778b6677fc92", + "id": "4a826eaa52d30b5a124fd4e91033a5786c4e3d03", "docs": null } } @@ -51233,7 +51233,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/date", + "url": "/primitive/date", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -51268,7 +51268,7 @@ } } }, - "id": "b9f6ca40c3f438fcbc1d65d2c3a452ad8f0242b0", + "id": "7eec0252632dd5dc49d7b503e96ca4ba858937f3", "docs": null } } @@ -51386,7 +51386,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/uuid", + "url": "/primitive/uuid", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -51421,7 +51421,7 @@ } } }, - "id": "ed03d2213a028b18946f98ae2ecb13d5538f2eb6", + "id": "ba5e94be59c44809fdc927861f5e3e1e91e49070", "docs": null } } @@ -51539,7 +51539,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/base64", + "url": "/primitive/base64", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -51578,7 +51578,7 @@ } } }, - "id": "b2bb953b13a382858121f8477aab66716fc9eb34", + "id": "80ea61c15ade208400bf272f6ad2a729e156c022", "docs": null } } @@ -52092,7 +52092,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/union", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -53005,7 +53005,7 @@ } } }, - "id": "0bbed56548fedcd09409092975861e2b7aaef2a2", + "id": "17aaa648460632760755a9239ee75c5ae484000e", "docs": null } } @@ -53595,7 +53595,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/object", + "url": "/req-bodies/object", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -58342,13 +58342,13 @@ } } }, - "id": "ae8997cb4a1381e7e3f7ba5b866bbd52eadcf6fc", + "id": "422fef36b0fd16f47c8d4970e08b9fcbb88b1d78", "docs": null } }, { "example": { - "url": "/object", + "url": "/req-bodies/object", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -60855,7 +60855,7 @@ }, "body": null }, - "id": "f5522cfa77e4d9bf74ee10865ed5cebc15f93645", + "id": "0a793d07e1b46bebef2e2608e86e6724a2664837", "docs": null } } @@ -61091,7 +61091,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/no-auth", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -61127,13 +61127,13 @@ } } }, - "id": "dc382c15ad6df51a1ab12bc5a21127e59c7d6da0", + "id": "7f3bb350766a8365501fd221b8aee5a6b830097c", "docs": null } }, { "example": { - "url": "", + "url": "/no-auth", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -61222,7 +61222,7 @@ }, "body": null }, - "id": "6b08cd23754582493138217cf9afb691f07be84d", + "id": "61e49c8c8afc944cb700fd326abe32d686c1d83c", "docs": null } } @@ -61450,7 +61450,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/no-req-body", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -63768,7 +63768,7 @@ } } }, - "id": "ec302c488e993f63068505e9b760afda4e1ae527", + "id": "0158f4df9eaa75edb2a27e26a255f8bd72aeaa46", "docs": null } } @@ -63843,7 +63843,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/no-req-body", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -63870,7 +63870,7 @@ } } }, - "id": "74437ee9f14c0f01f043028c19df2517463edf27", + "id": "1fa37aaa6c668d37e4513042274d7998d4a6d41f", "docs": null } } @@ -64140,7 +64140,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/custom-header", + "url": "/test-headers/custom-header", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -64242,7 +64242,7 @@ "value": null } }, - "id": "bbf988e65182c35efa02a2292a361c8296bff0da", + "id": "33ddaaefcf98815d7ea8cf4c1791c5d2c56a1af8", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json index 5f63f68698e..0d65d490c24 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json @@ -1517,7 +1517,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/extended-inline-request-body", + "url": "/extends/extended-inline-request-body", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -1705,7 +1705,7 @@ "value": null } }, - "id": "bcde58e8da00ffb94fb403ed44aa9e8db2fa0724", + "id": "2a930d5eb8b885851596e859a4a70f62eced8fb9", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json index af7b8b0566d..aebc0bb3a76 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json @@ -1061,7 +1061,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/service", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -1077,7 +1077,7 @@ "value": null } }, - "id": "f32b5d879ed8fcaf5933837461e79585e7e4a73f", + "id": "9b69c4e6e0171a8e9bb109148df42934e95e951f", "docs": null } } @@ -1282,7 +1282,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/service", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -1309,13 +1309,13 @@ "value": null } }, - "id": "86cbd50cd1589968edd0e4ab44a0f88d31406140", + "id": "8020c1600b167008eb2027111eccf94164aa7d2f", "docs": null } }, { "example": { - "url": "", + "url": "/service", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -1443,7 +1443,7 @@ }, "body": null }, - "id": "5942d0dc6cc1fdb7bffd950d1251d07ef3f05f36", + "id": "32c5a8afb1304bfb291cd6cac2f250e7b2d32937", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json index 9d42f9c229b..5c367bac539 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json @@ -600,7 +600,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/payment", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -789,7 +789,7 @@ } } }, - "id": "4b464513c5165e5e7f027630171707d1c7258157", + "id": "8a320ffc4e419d63d5b56c82dfefb8b336179bba", "docs": null } } @@ -929,7 +929,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/payment/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -979,7 +979,7 @@ "value": null } }, - "id": "da10ededed3e81e2ca423824abfbcb24ff841379", + "id": "2315d491d03c4df3f41970604f5b1f1e5954afa6", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json index 212d9f7dfa8..385086ab15c 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json @@ -1067,7 +1067,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/create-movie", + "url": "/movies/create-movie", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -1447,7 +1447,7 @@ } } }, - "id": "9c48a68c861fcde768d5bd494182ee29b48dc650", + "id": "0fd01d62bca0126c84c6dae0eb32bd903b886a36", "docs": null } } @@ -1844,7 +1844,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/movies/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -2422,13 +2422,13 @@ } } }, - "id": "797f312a44dfc70f3f993752150383635706680d", + "id": "d97dbe935d94679fad304e4b7fe57ad7cb648088", "docs": null } }, { "example": { - "url": "/", + "url": "/movies/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -2614,7 +2614,7 @@ }, "body": null }, - "id": "915c547f98b62efcd86f1cb60419f2ab5c70b220", + "id": "64c78dd17c6fd831a20713ef00cb5869434e9150", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json index 4b763851275..3950a818cb0 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json @@ -4649,7 +4649,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/path/", + "url": "/path/123", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -4931,7 +4931,7 @@ } } }, - "id": "69e254bbff93b5b1672899dfc26e98d435a6681c", + "id": "f4d8a3baa1f1462496dd00c05e23d0699b2bac0e", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json index 00b5d9d0af8..da95a5d4594 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json @@ -3771,7 +3771,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/resource/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -4375,7 +4375,7 @@ } } }, - "id": "33908f93913a5da8b02743080e49dc510ec12d08", + "id": "bc3f389ada4cbab1f7b18ba8e38de5dd38f1691d", "docs": null } } @@ -5405,7 +5405,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/resource", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -6136,7 +6136,7 @@ } } }, - "id": "a3447783e8257419556d79b840d8d04c6bc2d7ef", + "id": "ad9ec15d2c892c241c8dc3aad0b27896920b1ac8", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json index fedaa9fdf13..8ba4fe800fa 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json @@ -631,7 +631,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/users/", + "url": "/users/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -681,7 +681,7 @@ "value": null } }, - "id": "8b03331c1e2a444ac7a07cf56951302c3877da1b", + "id": "3d7410dbbb6194365009c3a5cd2cd247dd47cb8c", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json index 2b94a09e938..f88c150a3f2 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json @@ -286,7 +286,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/boot", + "url": "/ec2/boot", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -346,7 +346,7 @@ "value": null } }, - "id": "12fb4f2bf8222c588070fab7f30be040b0a58394", + "id": "5065b5e5ea240f7a5c685a0fada7bc576b98b4e8", "docs": null } } @@ -603,7 +603,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/presigned-url", + "url": "/s3/presigned-url", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -674,7 +674,7 @@ } } }, - "id": "6235dd2a327dc1f3d18dfc5134943e9ea6716330", + "id": "63c11ce696f291333c2d6f00ff85245dc5757403", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json index 5d86c27ef35..5ad985de69d 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json @@ -286,7 +286,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/boot", + "url": "/ec2/boot", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -346,7 +346,7 @@ "value": null } }, - "id": "12fb4f2bf8222c588070fab7f30be040b0a58394", + "id": "5065b5e5ea240f7a5c685a0fada7bc576b98b4e8", "docs": null } } @@ -603,7 +603,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/presigned-url", + "url": "/s3/presigned-url", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -674,7 +674,7 @@ } } }, - "id": "6235dd2a327dc1f3d18dfc5134943e9ea6716330", + "id": "63c11ce696f291333c2d6f00ff85245dc5757403", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json index 7a9be1e29dd..1750a0acd01 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json @@ -600,7 +600,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/string/", "rootPathParameters": [ { "name": { @@ -826,7 +826,7 @@ } } }, - "id": "b4ba6125c3e235a250d65f7c7e219d641c79c58d", + "id": "d738bace2be9136dd4e58c75b8de03dddea419e7", "docs": null } } @@ -1154,7 +1154,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/string//string", "rootPathParameters": [ { "name": { @@ -1238,7 +1238,7 @@ "value": null } }, - "id": "2f3238d635a9fa768d695ebe51dca21e1db5f6be", + "id": "3ce3364d8e8773ad8f2d2d7c763f071c46764a64", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json index 7ea33ae84e9..94eb38ea68b 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json @@ -2900,7 +2900,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/users", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -3944,7 +3944,7 @@ } } }, - "id": "8d8ee6c41bf7f4f54c5edf1a14b765dd1e2bbcfa", + "id": "e13336d38667ea3ed61a79b7c0a8de118c7a2f7e", "docs": null } } @@ -4496,7 +4496,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/users", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -5490,7 +5490,7 @@ } } }, - "id": "c96f4885a3329ac3d7f6c6dc9412e2ea417d93e0", + "id": "22b6e55d727eb18e1f508578d786e80debf8fa52", "docs": null } } @@ -6169,7 +6169,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/users", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -7213,7 +7213,7 @@ } } }, - "id": "8d8ee6c41bf7f4f54c5edf1a14b765dd1e2bbcfa", + "id": "e13336d38667ea3ed61a79b7c0a8de118c7a2f7e", "docs": null } } @@ -7687,7 +7687,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/users", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -8679,7 +8679,7 @@ } } }, - "id": "695868141204c9e2e9d0cd07f0c25b4b0d4dfee3", + "id": "d0685d05ed7d6f028c8bc6271c3aa0d4250d7091", "docs": null } } @@ -9236,7 +9236,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/users", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -10224,7 +10224,7 @@ } } }, - "id": "474e951a42bfd81fa289cea1e75fa07937923dff", + "id": "1481b8fe907c7915b5f6c441d234fb3bd1c809c0", "docs": null } } @@ -10660,7 +10660,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/users", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -11438,7 +11438,7 @@ } } }, - "id": "90357497c87fefa45cfbdca515e0eece12a2e48b", + "id": "081f40460a6c04a8761d8d84c643c110334884e6", "docs": null } } @@ -11850,7 +11850,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/users", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -12050,7 +12050,7 @@ } } }, - "id": "5fbdc71990d0876908b89a1fa7e55a50fa951dbe", + "id": "a9df0c1f71f9916f5b8c23c2926bfb306cccbaaf", "docs": null } } @@ -12471,7 +12471,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/users", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -12746,7 +12746,7 @@ } } }, - "id": "09c64be5c95b30c626cb3668031c49d53b3a26ac", + "id": "f97f68192d4af5fa738d4f87d238b0c2d51b0b7d", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json index 7b69a7c92c9..72eb3e18684 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json @@ -1485,7 +1485,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/user", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -4304,7 +4304,7 @@ } } }, - "id": "9f38eff9dea914492621301f98e565b99573b6d7", + "id": "f18d9c279504853c33fb9cfa107a6ab8600e3c35", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json index f9113940236..3ad432fc700 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json @@ -75459,7 +75459,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/store-test-submission-status/", + "url": "/admin/store-test-submission-status/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -75706,7 +75706,7 @@ "value": null } }, - "id": "79f93af73b73e38ab0e4827370d4496dda05a122", + "id": "2e2c5f8be4684b9ba5b1177bb620427fa07dff61", "docs": null } } @@ -76129,7 +76129,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/store-test-submission-status-v2/", + "url": "/admin/store-test-submission-status-v2/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -76777,7 +76777,7 @@ "value": null } }, - "id": "b74c910db3fd96ec8a1c1a6185d590fa0458ecc1", + "id": "ed466be34e43c78d4947a06bb9f267f861193cd1", "docs": null } } @@ -77200,7 +77200,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/store-workspace-submission-status/", + "url": "/admin/store-workspace-submission-status/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -77447,7 +77447,7 @@ "value": null } }, - "id": "4f4b4c5930a9c1b80dd1711b5b7ff70c7927a50a", + "id": "0ae09e012ce95de555ae3da2f60381c10e16c06d", "docs": null } } @@ -77870,7 +77870,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/store-workspace-submission-status-v2/", + "url": "/admin/store-workspace-submission-status-v2/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -78518,7 +78518,7 @@ "value": null } }, - "id": "1c22dfafe34350c9016d930bee4610d3eb0727a2", + "id": "856c75c3a422468fc1bac0c8101dc0efa1dacc44", "docs": null } } @@ -79131,7 +79131,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/store-test-trace/submission/", + "url": "/admin/store-test-trace/submission/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32/testCase/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -80976,7 +80976,7 @@ "value": null } }, - "id": "e114e07ec334cc1ebc787c6e9036652d9d8ae2a6", + "id": "937c09589c99c267195ba01eb5a75fb1aeaee409", "docs": null } } @@ -81681,7 +81681,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/store-test-trace-v2/submission/", + "url": "/admin/store-test-trace-v2/submission/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32/testCase/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -83389,7 +83389,7 @@ "value": null } }, - "id": "3768f0b2d69e864d90da1e75dd98f482e418e47e", + "id": "b47cdb0dd636d8e761a2791da42b7ae4dcbe6585", "docs": null } } @@ -83924,7 +83924,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/store-workspace-trace/submission/", + "url": "/admin/store-workspace-trace/submission/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -86116,7 +86116,7 @@ "value": null } }, - "id": "cca72df35cbd5572f99e5404d92a0758731363de", + "id": "91f1ccd10aa253a04c97ee610deda9b62b9fc30d", "docs": null } } @@ -86551,7 +86551,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/store-workspace-trace-v2/submission/", + "url": "/admin/store-workspace-trace-v2/submission/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -88113,7 +88113,7 @@ "value": null } }, - "id": "385f1860f0d7ce1072cb25a11e52ed26580a54e2", + "id": "69d884a67673a7049b6bd023274dae6d3e65997b", "docs": null } } @@ -88308,7 +88308,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/homepage-problems", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -88490,7 +88490,7 @@ } } }, - "id": "b54a91269f4a6b52ca354b79192669dcd708cc3f", + "id": "c89a85c15f5c7b95c0b7be54bac7edf56ee65e77", "docs": null } } @@ -88729,7 +88729,7 @@ "autogeneratedExamples": [ { "example": { - "url": "", + "url": "/homepage-problems", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -88912,7 +88912,7 @@ "value": null } }, - "id": "1d4d45ea3e18f1d3187307e1c8804da22869c0a6", + "id": "29891b2d5f858eaac03891c87aa005382990ddc8", "docs": null } } @@ -89208,7 +89208,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/all", + "url": "/migration-info/all", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -89709,7 +89709,7 @@ } } }, - "id": "84b96ea67d96a55a17d4a4d34581a2955cc8a94d", + "id": "9599e71a8106fcff3a355fc86fcdd3e7d0ba7b73", "docs": null } } @@ -90189,7 +90189,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/create", + "url": "/v2/playlist/1/create", "rootPathParameters": [], "servicePathParameters": [ { @@ -91549,7 +91549,7 @@ } } }, - "id": "c39a6e43d052fb905af723ea00e422b3926f31a1", + "id": "9a043f260b22419308d64c71d4d39de9ab223ae2", "docs": null } } @@ -91993,7 +91993,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/all", + "url": "/v2/playlist/1/all", "rootPathParameters": [], "servicePathParameters": [ { @@ -93137,7 +93137,7 @@ } } }, - "id": "e0bb54f64467c4d25ca40a141690bad51629326b", + "id": "62c5306ac205f9423540efe83c756ec512dd8482", "docs": null } } @@ -93641,7 +93641,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/v2/playlist/1/string", "rootPathParameters": [], "servicePathParameters": [ { @@ -94586,13 +94586,13 @@ } } }, - "id": "bd719d2a2652c839eaedf12ca25ae61f7e7f12c5", + "id": "4f146bbf8cf9744bbb50d143a2f4a7284ed63bb2", "docs": null } }, { "example": { - "url": "/", + "url": "/v2/playlist/1/string", "rootPathParameters": [], "servicePathParameters": [ { @@ -94810,13 +94810,13 @@ }, "body": null }, - "id": "50233a0667224abcb5fb8cbd5ea9a018a74f9f9d", + "id": "61c9e61f3f32463b9cf74b1ab2ce59c9f3795e8d", "docs": null } }, { "example": { - "url": "/", + "url": "/v2/playlist/1/string", "rootPathParameters": [], "servicePathParameters": [ { @@ -95034,7 +95034,7 @@ }, "body": null }, - "id": "1132da9eb32ddc1982dc5069f28a7bf4fde0b150", + "id": "2edb374196169b10d6651bee3868500da55f1a73", "docs": null } } @@ -95657,7 +95657,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/v2/playlist/1/string", "rootPathParameters": [], "servicePathParameters": [ { @@ -97206,13 +97206,13 @@ } } }, - "id": "0f30afc932d91913192bed572ef2ee52addf67cc", + "id": "de4aa05b2c627759d3ca01fe1270bf7d710c7f9e", "docs": null } }, { "example": { - "url": "/", + "url": "/v2/playlist/1/string", "rootPathParameters": [], "servicePathParameters": [ { @@ -97950,7 +97950,7 @@ }, "body": null }, - "id": "d4b60fe640054ee128297d2c6fd782e4053651c8", + "id": "78564448b1ad774e6654650e7b027c6cc53a4995", "docs": null } } @@ -98243,7 +98243,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/v2/playlist/1/string", "rootPathParameters": [], "servicePathParameters": [ { @@ -98399,7 +98399,7 @@ "value": null } }, - "id": "90f376ca6c3ce44b8d6263936ddb797399409fa3", + "id": "c6cb543b55bcd28a80ae17741cd850335a2c1098", "docs": null } } @@ -98757,7 +98757,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/create", + "url": "/problem-crud/create", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -102930,7 +102930,7 @@ } } }, - "id": "b8f57a93264251139b6e57e2c5e2e05d95a1186b", + "id": "0f0581f29d2b7b0ae70ace8de58940c890f96782", "docs": null } } @@ -103427,7 +103427,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/update/", + "url": "/problem-crud/update/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -107670,7 +107670,7 @@ } } }, - "id": "f70d50b8a38aee1f1cb2f237a07123988ca56aa5", + "id": "d5bcf764492470fa930c66c085b993634f48f2a0", "docs": null } } @@ -107924,7 +107924,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/delete/", + "url": "/problem-crud/delete/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -108048,7 +108048,7 @@ "value": null } }, - "id": "07d56a5eb5b06c0f24066bb47d42437e6a6fa933", + "id": "a1a191251d22f1c06a81b28307468020f15f4f3f", "docs": null } } @@ -108497,7 +108497,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/default-starter-files", + "url": "/problem-crud/default-starter-files", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -110573,7 +110573,7 @@ } } }, - "id": "31289b1a2d03937527758373f28684d29deaae7f", + "id": "1ae707012db1e7542a1d40bc6d33b50270694f7a", "docs": null } } @@ -110958,7 +110958,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/create-session/", + "url": "/sessions/create-session/JAVA", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -111764,7 +111764,7 @@ } } }, - "id": "2ed5ae9d50dc29106af3ba62ec714cc1f665797e", + "id": "7a440142c787fcc31aa646e4b5085c738f81d27e", "docs": null } } @@ -111984,7 +111984,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/sessions/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -112788,7 +112788,7 @@ } } }, - "id": "d1b293e382a72f52934583562db439a37711919b", + "id": "2c80a898f7ea0fa47239500a8a2fb51160c2ebf0", "docs": null } } @@ -112928,7 +112928,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/stop/", + "url": "/sessions/stop/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -112978,7 +112978,7 @@ "value": null } }, - "id": "053fe4a71f65cd0766b3497c13e52a05cad63a57", + "id": "97944cedeb0b025baf022c57793a236434ceaa6d", "docs": null } } @@ -113110,7 +113110,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/execution-sessions-state", + "url": "/sessions/execution-sessions-state", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -114557,7 +114557,7 @@ } } }, - "id": "4a7b0d139d211ea2e9448f353095ca961dfd0546", + "id": "cbc7c493968e7f2da63b68c0a3164a6d13b324bf", "docs": null } } @@ -114946,7 +114946,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/num-warm-instances/", + "url": "/sysprop/num-warm-instances/JAVA/1", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -115111,7 +115111,7 @@ "value": null } }, - "id": "8eb65d6a7e7286d213b708863b328b694c7c2bc3", + "id": "90f7bad177e280cecea3dedd777cc7154ce72793", "docs": null } } @@ -115260,7 +115260,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/num-warm-instances", + "url": "/sysprop/num-warm-instances", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -115475,7 +115475,7 @@ } } }, - "id": "a26bc8ab0a4fbca4254307109422a8d54efd43d4", + "id": "646d7cefd0ba41de50f42b0bda7d41eddfa09d2b", "docs": null } } @@ -115748,7 +115748,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/lightweight-problem-info", + "url": "/problems-v2/lightweight-problem-info", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -116844,7 +116844,7 @@ } } }, - "id": "5f6291a7db8634361bcad7048e2a80574c705b7e", + "id": "de957f3d0cabb4e084fefa870df639cfb6fcd21d", "docs": null } } @@ -117021,7 +117021,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/problem-info", + "url": "/problems-v2/problem-info", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -120065,7 +120065,7 @@ } } }, - "id": "f6ded8c8e132c01cd3f68479eac9cbce94bd6a8b", + "id": "556db8cae81128ea68af5da0d9dcee97f655c562", "docs": null } } @@ -120432,7 +120432,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/problem-info/", + "url": "/problems-v2/problem-info/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -123433,7 +123433,7 @@ } } }, - "id": "c6074ac64b32e55b032bfdc5a56f3014501922a8", + "id": "272528e215fe37bb9419d840756b62c412dca532", "docs": null } } @@ -123878,7 +123878,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/problem-info/", + "url": "/problems-v2/problem-info/string/version/1", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -126910,7 +126910,7 @@ } } }, - "id": "d4758b8a8495a3c63e4f569708fe5162f3b5887d", + "id": "c7a3659dd49e5da09b1286e3b553fc93ace16790", "docs": null } } @@ -127259,7 +127259,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/lightweight-problem-info", + "url": "/problems-v2/lightweight-problem-info", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -128583,7 +128583,7 @@ } } }, - "id": "fa14c9c0b83872df5f84b60e11abeade5cd3af74", + "id": "cf22886c147871dbbbfea98ec17082a1f817c0c9", "docs": null } } @@ -128798,7 +128798,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/problem-info", + "url": "/problems-v2/problem-info", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [], @@ -132526,7 +132526,7 @@ } } }, - "id": "7605751845289f7f1e84ca1dae6b2c192d189389", + "id": "b7b3201430d3c467903ef1c29346f6d85d475747", "docs": null } } @@ -132931,7 +132931,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/problem-info/", + "url": "/problems-v2/problem-info/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -136578,7 +136578,7 @@ } } }, - "id": "3fb79ccff8fe010b226a6035375e5b153ae46ef9", + "id": "908f224ff5e6a0662544907e05aedb5848a2bb2d", "docs": null } } @@ -137061,7 +137061,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/problem-info/", + "url": "/problems-v2/problem-info/string/version/1", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -140739,7 +140739,7 @@ } } }, - "id": "6087bcfefc8f74cb52f8c3da17bd9e025cc222a3", + "id": "156f18095438dbaf8932911fa5488e7531e7482c", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json index cb895e6b056..144953ed197 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json @@ -3862,7 +3862,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -4243,7 +4243,7 @@ } } }, - "id": "0a148524296cc0bea7d3f415f8710d40313b9bd0", + "id": "6c4cfa718d80bb223eeac626c89fbe9801395c48", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json index beee8e36332..1806782cc5a 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json @@ -218,7 +218,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -268,7 +268,7 @@ "value": null } }, - "id": "d7bc017f65a8d079e8145352a66f9102d97016ab", + "id": "8df62a9c2636f48e20ebeb2389bdb4148be0bd43", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json index c616fbd03e1..8a3a4c04072 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json @@ -840,7 +840,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/users/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -1318,7 +1318,7 @@ } } }, - "id": "82304bc4687da8b77e0cec22d014d53bdfa193d5", + "id": "e880c186d60240bcd29b7079b56cccb3a1898989", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json index ae1f4b30be2..88799fcb398 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json @@ -865,7 +865,7 @@ "autogeneratedExamples": [ { "example": { - "url": "/", + "url": "/users/string", "rootPathParameters": [], "servicePathParameters": [], "endpointPathParameters": [ @@ -1343,7 +1343,7 @@ } } }, - "id": "82304bc4687da8b77e0cec22d014d53bdfa193d5", + "id": "e880c186d60240bcd29b7079b56cccb3a1898989", "docs": null } } diff --git a/packages/cli/generation/ir-generator/src/examples/ExampleGenerator.ts b/packages/cli/generation/ir-generator/src/examples/ExampleGenerator.ts index 381a933383d..0ff0cd04048 100644 --- a/packages/cli/generation/ir-generator/src/examples/ExampleGenerator.ts +++ b/packages/cli/generation/ir-generator/src/examples/ExampleGenerator.ts @@ -204,8 +204,7 @@ export class ExampleGenerator { const examples = [ ...endpoint.userSpecifiedExamples.map((userSpecified) => userSpecified.example).filter(isNonNullish) ]; - return { - url: endpoint.path.head, + const exampleWithoutUrl = { rootPathParameters: rootPathParameters.map((p) => this.generatePathParameterExample({ pathParameter: p, @@ -266,6 +265,32 @@ export class ExampleGenerator { name: undefined, docs: undefined }; + const allPathParameters = [ + ...exampleWithoutUrl.rootPathParameters, + ...exampleWithoutUrl.servicePathParameters, + ...exampleWithoutUrl.endpointPathParameters + ]; + const pathParameterStringsByName = this.examplePathParametersToRecord(allPathParameters); + const url = + endpoint.fullPath.head + + endpoint.fullPath.parts + .map((pathPart) => pathParameterStringsByName[pathPart.pathParameter] + pathPart.tail) + .join(""); + return { + // not sure why this sometimes doesn't start with a slash + url: url.startsWith("/") || url === "" ? url : `/${url}`, + ...exampleWithoutUrl + }; + } + + private examplePathParametersToRecord(examplePathParameters: ExamplePathParameter[]): Record { + const result: Record = {}; + examplePathParameters.forEach((examplePathParameter) => { + const value = examplePathParameter.value.jsonExample; + const stringValue = typeof value === "string" ? value : JSON.stringify(value); + result[examplePathParameter.name.originalName] = stringValue; + }); + return result; } private generateEndpointExamples( diff --git a/packages/cli/generation/ir-migrations/src/migrations/v39-to-v38/__test__/__snapshots__/migrateFromV39ToV38.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v39-to-v38/__test__/__snapshots__/migrateFromV39ToV38.test.ts.snap index 5a448e13aed..371f7a44bcc 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v39-to-v38/__test__/__snapshots__/migrateFromV39ToV38.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v39-to-v38/__test__/__snapshots__/migrateFromV39ToV38.test.ts.snap @@ -3601,7 +3601,7 @@ exports[`migrateFromV39ToV38 snapshot 1`] = ` "rootPathParameters": [], "serviceHeaders": [], "servicePathParameters": [], - "url": "/check/", + "url": "/check/string", }, ], "fullPath": { diff --git a/packages/cli/generation/ir-migrations/src/migrations/v42-to-v41/__test__/__snapshots__/migrateFromV42ToV41.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v42-to-v41/__test__/__snapshots__/migrateFromV42ToV41.test.ts.snap index d85caad01d9..9a301d8adaf 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v42-to-v41/__test__/__snapshots__/migrateFromV42ToV41.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v42-to-v41/__test__/__snapshots__/migrateFromV42ToV41.test.ts.snap @@ -3848,7 +3848,7 @@ exports[`migrateFromV42ToV41 snapshot 1`] = ` "rootPathParameters": [], "serviceHeaders": [], "servicePathParameters": [], - "url": "/check/", + "url": "/check/string", }, ], "fullPath": { diff --git a/packages/cli/generation/ir-migrations/src/migrations/v47-to-v46/__test__/__snapshots__/migrateFromV47ToV46.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v47-to-v46/__test__/__snapshots__/migrateFromV47ToV46.test.ts.snap index e3f343aa524..9cfc3f008a0 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v47-to-v46/__test__/__snapshots__/migrateFromV47ToV46.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v47-to-v46/__test__/__snapshots__/migrateFromV47ToV46.test.ts.snap @@ -2080,7 +2080,7 @@ const user = client.users.get(1234); }, ], "exampleType": "generated", - "id": "c18ce38a8916dd863c73faf7ca625893b2260874", + "id": "43adba1ee3267b4692e26594b99bde39e6595dcf", "name": null, "queryParameters": [], "request": null, @@ -2377,7 +2377,7 @@ const user = client.users.get(1234); "rootPathParameters": [], "serviceHeaders": [], "servicePathParameters": [], - "url": "/", + "url": "/string", }, ], "fullPath": { diff --git a/packages/cli/generation/ir-migrations/src/migrations/v51-to-v50/__test__/__snapshots__/migrateFromV51ToV50.test.ts.snap b/packages/cli/generation/ir-migrations/src/migrations/v51-to-v50/__test__/__snapshots__/migrateFromV51ToV50.test.ts.snap index 0030d8854b7..db21ba2a5e9 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v51-to-v50/__test__/__snapshots__/migrateFromV51ToV50.test.ts.snap +++ b/packages/cli/generation/ir-migrations/src/migrations/v51-to-v50/__test__/__snapshots__/migrateFromV51ToV50.test.ts.snap @@ -2046,7 +2046,7 @@ exports[`migrateFromV51ToV50 simple 1`] = ` }, }, ], - "id": "c18ce38a8916dd863c73faf7ca625893b2260874", + "id": "43adba1ee3267b4692e26594b99bde39e6595dcf", "name": null, "queryParameters": [], "request": null, @@ -2343,7 +2343,7 @@ exports[`migrateFromV51ToV50 simple 1`] = ` "rootPathParameters": [], "serviceHeaders": [], "servicePathParameters": [], - "url": "/", + "url": "/string", }, }, ],