Skip to content

Commit 0793d07

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
[K9VULN-4477]: Remove Description and Icon URL as Required Fields From Get Framework (#2227)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent b6d2268 commit 0793d07

File tree

6 files changed

+23
-43
lines changed

6 files changed

+23
-43
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-05-13 09:46:01.195015",
8-
"spec_repo_commit": "767fe63b"
7+
"regenerated": "2025-05-13 17:47:36.253536",
8+
"spec_repo_commit": "b673a489"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-13 09:46:01.212504",
13-
"spec_repo_commit": "767fe63b"
12+
"regenerated": "2025-05-13 17:47:36.271169",
13+
"spec_repo_commit": "b673a489"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10937,8 +10937,6 @@ components:
1093710937
- handle
1093810938
- version
1093910939
- name
10940-
- description
10941-
- icon_url
1094210940
type: object
1094310941
DORADeploymentRequest:
1094410942
description: Request to create a DORA deployment event.
@@ -15262,10 +15260,6 @@ components:
1526215260
FullCustomFrameworkDataAttributes:
1526315261
description: Full Framework Data Attributes.
1526415262
properties:
15265-
description:
15266-
description: Framework Description
15267-
example: this is a security framework
15268-
type: string
1526915263
handle:
1527015264
description: Framework Handle
1527115265
example: sec2
@@ -15291,8 +15285,6 @@ components:
1529115285
- handle
1529215286
- version
1529315287
- name
15294-
- description
15295-
- icon_url
1529615288
- requirements
1529715289
type: object
1529815290
GCPMetricNamespaceConfig:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-04-27T22:14:16.448Z"
1+
"2025-05-13T17:29:58.139Z"

cassettes/v2/Security-Monitoring_1187227211/Get-a-custom-framework-returns-OK-response_549469877/recording.har

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 599,
29+
"headersSize": 619,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
@@ -51,14 +51,14 @@
5151
"value": "application/vnd.api+json"
5252
}
5353
],
54-
"headersSize": 675,
54+
"headersSize": 674,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2025-04-27T22:14:16.451Z",
61-
"time": 572
60+
"startedDateTime": "2025-05-13T17:29:58.147Z",
61+
"time": 611
6262
},
6363
{
6464
"_id": "2d05687eaf69d5560b4d5a69c2280ff4",
@@ -74,18 +74,18 @@
7474
"value": "application/json"
7575
}
7676
],
77-
"headersSize": 566,
77+
"headersSize": 586,
7878
"httpVersion": "HTTP/1.1",
7979
"method": "GET",
8080
"queryString": [],
8181
"url": "https://api.datadoghq.com/api/v2/cloud_security_management/custom_frameworks/create-framework-new/10"
8282
},
8383
"response": {
84-
"bodySize": 281,
84+
"bodySize": 264,
8585
"content": {
8686
"mimeType": "application/vnd.api+json",
87-
"size": 281,
88-
"text": "{\"data\":{\"id\":\"create-framework-new-10\",\"type\":\"custom_framework\",\"attributes\":{\"description\":\"\",\"handle\":\"create-framework-new\",\"icon_url\":\"test-url\",\"name\":\"name\",\"requirements\":[{\"name\":\"requirement\",\"controls\":[{\"name\":\"control\",\"rules_id\":[\"def-000-be9\"]}]}],\"version\":\"10\"}}}"
87+
"size": 264,
88+
"text": "{\"data\":{\"id\":\"create-framework-new-10\",\"type\":\"custom_framework\",\"attributes\":{\"handle\":\"create-framework-new\",\"icon_url\":\"test-url\",\"name\":\"name\",\"requirements\":[{\"name\":\"requirement\",\"controls\":[{\"name\":\"control\",\"rules_id\":[\"def-000-be9\"]}]}],\"version\":\"10\"}}}"
8989
},
9090
"cookies": [],
9191
"headers": [
@@ -94,14 +94,14 @@
9494
"value": "application/vnd.api+json"
9595
}
9696
],
97-
"headersSize": 675,
97+
"headersSize": 674,
9898
"httpVersion": "HTTP/1.1",
9999
"redirectURL": "",
100100
"status": 200,
101101
"statusText": "OK"
102102
},
103-
"startedDateTime": "2025-04-27T22:14:17.029Z",
104-
"time": 358
103+
"startedDateTime": "2025-05-13T17:29:58.767Z",
104+
"time": 197
105105
},
106106
{
107107
"_id": "e535722a99e330cf49f72d093bd78b3a",
@@ -117,7 +117,7 @@
117117
"value": "application/json"
118118
}
119119
],
120-
"headersSize": 572,
120+
"headersSize": 592,
121121
"httpVersion": "HTTP/1.1",
122122
"method": "DELETE",
123123
"queryString": [],
@@ -137,14 +137,14 @@
137137
"value": "application/vnd.api+json"
138138
}
139139
],
140-
"headersSize": 675,
140+
"headersSize": 674,
141141
"httpVersion": "HTTP/1.1",
142142
"redirectURL": "",
143143
"status": 200,
144144
"statusText": "OK"
145145
},
146-
"startedDateTime": "2025-04-27T22:14:17.392Z",
147-
"time": 656
146+
"startedDateTime": "2025-05-13T17:29:58.982Z",
147+
"time": 412
148148
}
149149
],
150150
"pages": [],

packages/datadog-api-client-v2/models/CustomFrameworkWithoutRequirements.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ export class CustomFrameworkWithoutRequirements {
1313
/**
1414
* Framework Description
1515
*/
16-
"description": string;
16+
"description"?: string;
1717
/**
1818
* Framework Handle
1919
*/
2020
"handle": string;
2121
/**
2222
* Framework Icon URL
2323
*/
24-
"iconUrl": string;
24+
"iconUrl"?: string;
2525
/**
2626
* Framework Name
2727
*/
@@ -50,7 +50,6 @@ export class CustomFrameworkWithoutRequirements {
5050
description: {
5151
baseName: "description",
5252
type: "string",
53-
required: true,
5453
},
5554
handle: {
5655
baseName: "handle",
@@ -60,7 +59,6 @@ export class CustomFrameworkWithoutRequirements {
6059
iconUrl: {
6160
baseName: "icon_url",
6261
type: "string",
63-
required: true,
6462
},
6563
name: {
6664
baseName: "name",

packages/datadog-api-client-v2/models/FullCustomFrameworkDataAttributes.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1111
* Full Framework Data Attributes.
1212
*/
1313
export class FullCustomFrameworkDataAttributes {
14-
/**
15-
* Framework Description
16-
*/
17-
"description": string;
1814
/**
1915
* Framework Handle
2016
*/
2117
"handle": string;
2218
/**
2319
* Framework Icon URL
2420
*/
25-
"iconUrl": string;
21+
"iconUrl"?: string;
2622
/**
2723
* Framework Name
2824
*/
@@ -52,11 +48,6 @@ export class FullCustomFrameworkDataAttributes {
5248
* @ignore
5349
*/
5450
static readonly attributeTypeMap: AttributeTypeMap = {
55-
description: {
56-
baseName: "description",
57-
type: "string",
58-
required: true,
59-
},
6051
handle: {
6152
baseName: "handle",
6253
type: "string",
@@ -65,7 +56,6 @@ export class FullCustomFrameworkDataAttributes {
6556
iconUrl: {
6657
baseName: "icon_url",
6758
type: "string",
68-
required: true,
6959
},
7060
name: {
7161
baseName: "name",

0 commit comments

Comments
 (0)