You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/@ama-sdk/schematics/README.md
+10
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,16 @@ For more information, check out OpenAPI's documentation on [parameter serializat
119
119
It is important to note that, as in OpenAPI 3.1, we only support simple arrays and simple non-nested objects in path and query parameters.
120
120
The parameter types that we support are stored in `SupportedParamType` in the package `@ama-sdk/core`.
121
121
122
+
To enable the parameter serialization within your API, you can set the option `enableParameterSerialization` to `true` (its current default value is `false`) in the constructor. For example:
123
+
```typescript
124
+
const apiConfig:ApiClient=newApiFetchClient(
125
+
{
126
+
basePath: 'https://petstore3.swagger.io/api/v3',
127
+
enableParameterSerialization: true
128
+
}
129
+
);
130
+
```
131
+
122
132
We provide the methods `serializeQueryParams` and `serializePathParams` to serialize the values of query and path parameters. However, it is also possible to pass
123
133
your own serialization methods if the ones provided do not meet your requirements. These custom methods can be passed as a parameter to the API client constructor.
Copy file name to clipboardExpand all lines: packages/@ama-sdk/schematics/schematics/typescript/core/openapi-codegen-typescript/src/main/java/com/amadeus/codegen/ts/AbstractTypeScriptClientCodegen.java
+2
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,9 @@ public AbstractTypeScriptClientCodegen() {
Copy file name to clipboardExpand all lines: packages/@ama-sdk/schematics/schematics/typescript/core/openapi-codegen-typescript/src/main/java/com/amadeus/codegen/ts/LambdaHelper.java
+35-2
Original file line number
Diff line number
Diff line change
@@ -59,12 +59,29 @@ public String formatFragment(String fragment) {
0 commit comments