Skip to content

Commit 1950c46

Browse files
committed
updating schema
1 parent ac63209 commit 1950c46

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/openapi_schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.1.0",
33
"info": {
44
"title": "django_ai_assistant",
5-
"version": "0.1.1",
5+
"version": "0.1.2",
66
"description": ""
77
},
88
"paths": {
@@ -507,4 +507,4 @@
507507
}
508508
},
509509
"servers": []
510-
}
510+
}

frontend/src/client/core/ApiRequestOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export type ApiRequestOptions<T = unknown> = {
99
readonly body?: any;
1010
readonly mediaType?: string;
1111
readonly responseHeader?: string;
12-
readonly responseTransformer?: (data: unknown) => Promise<T>;
12+
readonly responseTransformer?: (data: unknown) => T;
1313
readonly errors?: Record<number | string, string>;
1414
};

frontend/src/client/core/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>,
325325

326326
let transformedBody = responseBody;
327327
if (options.responseTransformer && isSuccess(response.status)) {
328-
transformedBody = await options.responseTransformer(responseBody)
328+
transformedBody = options.responseTransformer(responseBody)
329329
}
330330

331331
const result: ApiResult = {

0 commit comments

Comments
 (0)