Skip to content

Commit f69ec94

Browse files
committed
Generate SessionAuthentication
1 parent 7a17026 commit f69ec94

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/services/sessionAuthentication/sessionAuthenticationApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ export class SessionAuthenticationApi extends Service {
4141
const endpoint = `${this.baseUrl}/sessions`;
4242
const resource = new Resource(this, endpoint);
4343

44-
const request: AuthenticationSessionRequest = ObjectSerializer.serialize(authenticationSessionRequest, "AuthenticationSessionRequest", "");
44+
const request: AuthenticationSessionRequest = ObjectSerializer.serialize(authenticationSessionRequest, "AuthenticationSessionRequest");
4545
const response = await getJsonResponse<AuthenticationSessionRequest, AuthenticationSessionResponse>(
4646
resource,
4747
request,
4848
{ ...requestOptions, method: "POST" }
4949
);
5050

51-
return ObjectSerializer.deserialize(response, "AuthenticationSessionResponse", "");
51+
return ObjectSerializer.deserialize(response, "AuthenticationSessionResponse");
5252
}
5353

5454
}

src/typings/sessionAuthentication/objectSerializer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ export class ObjectSerializer {
156156
*
157157
* @param data - The value to serialize.
158158
* @param type - The expected type name as a string.
159-
* @param format - Format hint (e.g. "date" or "date-time").
159+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
160160
* @returns A JSON-compatible representation of `data`.
161161
*/
162-
public static serialize(data: any, type: string, format: string): any {
162+
public static serialize(data: any, type: string, format: string = ""): any {
163163
if (data == undefined) {
164164
return data;
165165
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
@@ -236,10 +236,10 @@ export class ObjectSerializer {
236236
*
237237
* @param data - The raw input to deserialize.
238238
* @param type - The expected type name as a string.
239-
* @param format - Format hint (e.g. "date" or "date-time").
239+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
240240
* @returns A deserialized instance or value of `data`.
241241
*/
242-
public static deserialize(data: any, type: string, format: string): any {
242+
public static deserialize(data: any, type: string, format: string = ""): any {
243243
// polymorphism may change the actual type.
244244
type = ObjectSerializer.findCorrectType(data, type);
245245
if (data == undefined) {

0 commit comments

Comments
 (0)