-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix quote issue in path pattern (#4634)
* fix quote issue in path * Changes from lint:fix * changelog * fix test * fix test 2 * fix test 3 --------- Co-authored-by: cloud-sdk-js <cloud-sdk-js@github.com>
- Loading branch information
Showing
6 changed files
with
66 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@sap-cloud-sdk/openapi-generator": minor | ||
--- | ||
|
||
[Fixed Issue] Fix serialization of path params that contain quotes to avoid syntax error and failing client generation |
16 changes: 16 additions & 0 deletions
16
packages/openapi-generator/src/file-serializer/__snapshots__/operation.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`serializeOperation serializes operation with path parameters inside () 1`] = ` | ||
"/** | ||
* Create a request builder for execution of get requests to the 'test('{id}')' endpoint. | ||
* @param id - Path parameter. | ||
* @returns The request builder, use the \`execute()\` method to trigger the request. | ||
*/ | ||
getFn: (id: string) => new OpenApiRequestBuilder<Record<string, any>>( | ||
'get', | ||
"test('{id}')", | ||
{ | ||
pathParameters: { id } | ||
} | ||
)" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters