File tree Expand file tree Collapse file tree 3 files changed +15
-11
lines changed
packages/datadog-api-client-v2/apis Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "spec_repo_commit": "d02c8a3 ",
3
- "generated": "2025-08-08 12:08:19.964 "
2
+ "spec_repo_commit": "3a6cb30 ",
3
+ "generated": "2025-08-12 15:42:26.157 "
4
4
}
Original file line number Diff line number Diff line change @@ -55875,25 +55875,25 @@ paths:
55875
55875
content:
55876
55876
application/json:
55877
55877
schema:
55878
- $ref: '#/components/schemas/APIErrorResponse '
55878
+ $ref: '#/components/schemas/JSONAPIErrorResponse '
55879
55879
description: Bad Request
55880
55880
'403':
55881
55881
content:
55882
55882
application/json:
55883
55883
schema:
55884
- $ref: '#/components/schemas/APIErrorResponse '
55884
+ $ref: '#/components/schemas/JSONAPIErrorResponse '
55885
55885
description: Forbidden
55886
55886
'404':
55887
55887
content:
55888
55888
application/json:
55889
55889
schema:
55890
- $ref: '#/components/schemas/APIErrorResponse '
55890
+ $ref: '#/components/schemas/JSONAPIErrorResponse '
55891
55891
description: Not Found
55892
55892
'429':
55893
55893
content:
55894
55894
application/json:
55895
55895
schema:
55896
- $ref: '#/components/schemas/APIErrorResponse '
55896
+ $ref: '#/components/schemas/JSONAPIErrorResponse '
55897
55897
description: Too Many Requests
55898
55898
summary: Get tag key cardinality details
55899
55899
tags:
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { ApiException } from "../../datadog-api-client-common/exception";
18
18
19
19
import { APIErrorResponse } from "../models/APIErrorResponse" ;
20
20
import { IntakePayloadAccepted } from "../models/IntakePayloadAccepted" ;
21
+ import { JSONAPIErrorResponse } from "../models/JSONAPIErrorResponse" ;
21
22
import { MetricAllTagsResponse } from "../models/MetricAllTagsResponse" ;
22
23
import { MetricAssetsResponse } from "../models/MetricAssetsResponse" ;
23
24
import { MetricBulkTagConfigCreateRequest } from "../models/MetricBulkTagConfigCreateRequest" ;
@@ -1136,20 +1137,23 @@ export class MetricsApiResponseProcessor {
1136
1137
await response . body . text ( ) ,
1137
1138
contentType
1138
1139
) ;
1139
- let body : APIErrorResponse ;
1140
+ let body : JSONAPIErrorResponse ;
1140
1141
try {
1141
1142
body = ObjectSerializer . deserialize (
1142
1143
bodyText ,
1143
- "APIErrorResponse "
1144
- ) as APIErrorResponse ;
1144
+ "JSONAPIErrorResponse "
1145
+ ) as JSONAPIErrorResponse ;
1145
1146
} catch ( error ) {
1146
1147
logger . debug ( `Got error deserializing error: ${ error } ` ) ;
1147
- throw new ApiException < APIErrorResponse > (
1148
+ throw new ApiException < JSONAPIErrorResponse > (
1148
1149
response . httpStatusCode ,
1149
1150
bodyText
1150
1151
) ;
1151
1152
}
1152
- throw new ApiException < APIErrorResponse > ( response . httpStatusCode , body ) ;
1153
+ throw new ApiException < JSONAPIErrorResponse > (
1154
+ response . httpStatusCode ,
1155
+ body
1156
+ ) ;
1153
1157
}
1154
1158
1155
1159
// Work around for missing responses in specification, e.g. for petstore.yaml
You can’t perform that action at this time.
0 commit comments