File tree Expand file tree Collapse file tree 6 files changed +116
-4
lines changed
packages/datadog-api-client-v2 Expand file tree Collapse file tree 6 files changed +116
-4
lines changed Original file line number Diff line number Diff line change 4
4
"spec_versions": {
5
5
"v1": {
6
6
"apigentools_version": "1.6.6",
7
- "regenerated": "2025-01-06 18:09:35.371091 ",
8
- "spec_repo_commit": "c020103f "
7
+ "regenerated": "2025-01-06 19:03:11.356485 ",
8
+ "spec_repo_commit": "b56ea2d7 "
9
9
},
10
10
"v2": {
11
11
"apigentools_version": "1.6.6",
12
- "regenerated": "2025-01-06 18:09:35.385957 ",
13
- "spec_repo_commit": "c020103f "
12
+ "regenerated": "2025-01-06 19:03:11.371812 ",
13
+ "spec_repo_commit": "b56ea2d7 "
14
14
}
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -15109,6 +15109,12 @@ components:
15109
15109
the error.
15110
15110
example: Missing required attribute in body
15111
15111
type: string
15112
+ meta:
15113
+ additionalProperties: {}
15114
+ description: Non-standard meta-information about the error
15115
+ type: object
15116
+ source:
15117
+ $ref: '#/components/schemas/JSONAPIErrorItemSource'
15112
15118
status:
15113
15119
description: Status code of the response.
15114
15120
example: '400'
@@ -15118,6 +15124,24 @@ components:
15118
15124
example: Bad Request
15119
15125
type: string
15120
15126
type: object
15127
+ JSONAPIErrorItemSource:
15128
+ description: References to the source of the error.
15129
+ properties:
15130
+ header:
15131
+ description: A string indicating the name of a single request header which
15132
+ caused the error.
15133
+ example: Authorization
15134
+ type: string
15135
+ parameter:
15136
+ description: A string indicating which URI query parameter caused the error.
15137
+ example: limit
15138
+ type: string
15139
+ pointer:
15140
+ description: A JSON pointer to the value in the request document that caused
15141
+ the error.
15142
+ example: /data/attributes/title
15143
+ type: string
15144
+ type: object
15121
15145
JSONAPIErrorResponse:
15122
15146
description: API error response.
15123
15147
properties:
Original file line number Diff line number Diff line change @@ -1510,6 +1510,7 @@ export { JobCreateResponseData } from "./models/JobCreateResponseData";
1510
1510
export { JobDefinition } from "./models/JobDefinition" ;
1511
1511
export { JobDefinitionFromRule } from "./models/JobDefinitionFromRule" ;
1512
1512
export { JSONAPIErrorItem } from "./models/JSONAPIErrorItem" ;
1513
+ export { JSONAPIErrorItemSource } from "./models/JSONAPIErrorItemSource" ;
1513
1514
export { JSONAPIErrorResponse } from "./models/JSONAPIErrorResponse" ;
1514
1515
export { LeakedKey } from "./models/LeakedKey" ;
1515
1516
export { LeakedKeyAttributes } from "./models/LeakedKeyAttributes" ;
Original file line number Diff line number Diff line change 3
3
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4
4
* Copyright 2020-Present Datadog, Inc.
5
5
*/
6
+ import { JSONAPIErrorItemSource } from "./JSONAPIErrorItemSource" ;
6
7
7
8
import { AttributeTypeMap } from "../../datadog-api-client-common/util" ;
8
9
@@ -14,6 +15,14 @@ export class JSONAPIErrorItem {
14
15
* A human-readable explanation specific to this occurrence of the error.
15
16
*/
16
17
"detail" ?: string ;
18
+ /**
19
+ * Non-standard meta-information about the error
20
+ */
21
+ "meta" ?: { [ key : string ] : any } ;
22
+ /**
23
+ * References to the source of the error.
24
+ */
25
+ "source" ?: JSONAPIErrorItemSource ;
17
26
/**
18
27
* Status code of the response.
19
28
*/
@@ -43,6 +52,14 @@ export class JSONAPIErrorItem {
43
52
baseName : "detail" ,
44
53
type : "string" ,
45
54
} ,
55
+ meta : {
56
+ baseName : "meta" ,
57
+ type : "{ [key: string]: any; }" ,
58
+ } ,
59
+ source : {
60
+ baseName : "source" ,
61
+ type : "JSONAPIErrorItemSource" ,
62
+ } ,
46
63
status : {
47
64
baseName : "status" ,
48
65
type : "string" ,
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
4
+ * Copyright 2020-Present Datadog, Inc.
5
+ */
6
+
7
+ import { AttributeTypeMap } from "../../datadog-api-client-common/util" ;
8
+
9
+ /**
10
+ * References to the source of the error.
11
+ */
12
+ export class JSONAPIErrorItemSource {
13
+ /**
14
+ * A string indicating the name of a single request header which caused the error.
15
+ */
16
+ "header" ?: string ;
17
+ /**
18
+ * A string indicating which URI query parameter caused the error.
19
+ */
20
+ "parameter" ?: string ;
21
+ /**
22
+ * A JSON pointer to the value in the request document that caused the error.
23
+ */
24
+ "pointer" ?: string ;
25
+
26
+ /**
27
+ * A container for additional, undeclared properties.
28
+ * This is a holder for any undeclared properties as specified with
29
+ * the 'additionalProperties' keyword in the OAS document.
30
+ */
31
+ "additionalProperties" ?: { [ key : string ] : any } ;
32
+
33
+ /**
34
+ * @ignore
35
+ */
36
+ "_unparsed" ?: boolean ;
37
+
38
+ /**
39
+ * @ignore
40
+ */
41
+ static readonly attributeTypeMap : AttributeTypeMap = {
42
+ header : {
43
+ baseName : "header" ,
44
+ type : "string" ,
45
+ } ,
46
+ parameter : {
47
+ baseName : "parameter" ,
48
+ type : "string" ,
49
+ } ,
50
+ pointer : {
51
+ baseName : "pointer" ,
52
+ type : "string" ,
53
+ } ,
54
+ additionalProperties : {
55
+ baseName : "additionalProperties" ,
56
+ type : "any" ,
57
+ } ,
58
+ } ;
59
+
60
+ /**
61
+ * @ignore
62
+ */
63
+ static getAttributeTypeMap ( ) : AttributeTypeMap {
64
+ return JSONAPIErrorItemSource . attributeTypeMap ;
65
+ }
66
+
67
+ public constructor ( ) { }
68
+ }
Original file line number Diff line number Diff line change @@ -686,6 +686,7 @@ import { InputSchemaDataAttributesParametersItemsDataAttributes } from "./InputS
686
686
import { IntakePayloadAccepted } from "./IntakePayloadAccepted" ;
687
687
import { InterfaceAttributes } from "./InterfaceAttributes" ;
688
688
import { JSONAPIErrorItem } from "./JSONAPIErrorItem" ;
689
+ import { JSONAPIErrorItemSource } from "./JSONAPIErrorItemSource" ;
689
690
import { JSONAPIErrorResponse } from "./JSONAPIErrorResponse" ;
690
691
import { JiraIntegrationMetadata } from "./JiraIntegrationMetadata" ;
691
692
import { JiraIntegrationMetadataIssuesItem } from "./JiraIntegrationMetadataIssuesItem" ;
@@ -3057,6 +3058,7 @@ const typeMap: { [index: string]: any } = {
3057
3058
IntakePayloadAccepted : IntakePayloadAccepted ,
3058
3059
InterfaceAttributes : InterfaceAttributes ,
3059
3060
JSONAPIErrorItem : JSONAPIErrorItem ,
3061
+ JSONAPIErrorItemSource : JSONAPIErrorItemSource ,
3060
3062
JSONAPIErrorResponse : JSONAPIErrorResponse ,
3061
3063
JiraIntegrationMetadata : JiraIntegrationMetadata ,
3062
3064
JiraIntegrationMetadataIssuesItem : JiraIntegrationMetadataIssuesItem ,
You can’t perform that action at this time.
0 commit comments