Skip to content

Commit 71a2aec

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove schema from 200 response for delete index (#2095)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 916ce51 commit 71a2aec

File tree

5 files changed

+13
-21
lines changed

5 files changed

+13
-21
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-10 19:36:00.246192",
8-
"spec_repo_commit": "7d0b49f6"
7+
"regenerated": "2025-03-11 13:16:50.796374",
8+
"spec_repo_commit": "d7618fa5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-10 19:36:00.262164",
13-
"spec_repo_commit": "7d0b49f6"
12+
"regenerated": "2025-03-11 13:16:50.814243",
13+
"spec_repo_commit": "d7618fa5"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28773,10 +28773,6 @@ paths:
2877328773
type: string
2877428774
responses:
2877528775
'200':
28776-
content:
28777-
application/json:
28778-
schema:
28779-
$ref: '#/components/schemas/LogsIndex'
2878028776
description: OK
2878128777
'403':
2878228778
content:

examples/v1/logs-indexes/DeleteLogsIndex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const params: v1.LogsIndexesApiDeleteLogsIndexRequest = {
1313

1414
apiInstance
1515
.deleteLogsIndex(params)
16-
.then((data: v1.LogsIndex) => {
16+
.then((data: any) => {
1717
console.log(
1818
"API called successfully. Returned data: " + JSON.stringify(data)
1919
);

features/support/scenarios_model_mapping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
13991399
"type": "string",
14001400
"format": "",
14011401
},
1402-
"operationResponseType": "LogsIndex",
1402+
"operationResponseType": "void",
14031403
},
14041404
"v1.GetLogsIndex": {
14051405
"name": {

packages/datadog-api-client-v1/apis/LogsIndexesApi.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class LogsIndexesApiRequestFactory extends BaseAPIRequestFactory {
8686
const requestContext = _config
8787
.getServer("v1.LogsIndexesApi.deleteLogsIndex")
8888
.makeRequestContext(localVarPath, HttpMethod.DELETE);
89-
requestContext.setHeaderParam("Accept", "application/json");
89+
requestContext.setHeaderParam("Accept", "*/*");
9090
requestContext.setHttpConfig(_config.httpConfig);
9191

9292
// Apply auth methods
@@ -359,16 +359,12 @@ export class LogsIndexesApiResponseProcessor {
359359
* @params response Response returned by the server for a request to deleteLogsIndex
360360
* @throws ApiException if the response code was not in [200, 299]
361361
*/
362-
public async deleteLogsIndex(response: ResponseContext): Promise<LogsIndex> {
362+
public async deleteLogsIndex(response: ResponseContext): Promise<void> {
363363
const contentType = ObjectSerializer.normalizeMediaType(
364364
response.headers["content-type"]
365365
);
366366
if (response.httpStatusCode === 200) {
367-
const body: LogsIndex = ObjectSerializer.deserialize(
368-
ObjectSerializer.parse(await response.body.text(), contentType),
369-
"LogsIndex"
370-
) as LogsIndex;
371-
return body;
367+
return;
372368
}
373369
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
374370
const bodyText = ObjectSerializer.parse(
@@ -416,11 +412,11 @@ export class LogsIndexesApiResponseProcessor {
416412

417413
// Work around for missing responses in specification, e.g. for petstore.yaml
418414
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
419-
const body: LogsIndex = ObjectSerializer.deserialize(
415+
const body: void = ObjectSerializer.deserialize(
420416
ObjectSerializer.parse(await response.body.text(), contentType),
421-
"LogsIndex",
417+
"void",
422418
""
423-
) as LogsIndex;
419+
) as void;
424420
return body;
425421
}
426422

@@ -878,7 +874,7 @@ export class LogsIndexesApi {
878874
public deleteLogsIndex(
879875
param: LogsIndexesApiDeleteLogsIndexRequest,
880876
options?: Configuration
881-
): Promise<LogsIndex> {
877+
): Promise<void> {
882878
const requestContextPromise = this.requestFactory.deleteLogsIndex(
883879
param.name,
884880
options

0 commit comments

Comments
 (0)