Skip to content

Commit 566aa06

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Disable additionalProperties for Downtime Schedule UpdateRequest oneOfs (#1525)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 5b97eb4 commit 566aa06

File tree

4 files changed

+6
-27
lines changed

4 files changed

+6
-27
lines changed

.apigentools-info

+4-4
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": "2024-03-06 21:36:39.696705",
8-
"spec_repo_commit": "d76a4666"
7+
"regenerated": "2024-03-07 14:48:11.719468",
8+
"spec_repo_commit": "dbf17f07"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-03-06 21:36:39.714314",
13-
"spec_repo_commit": "d76a4666"
12+
"regenerated": "2024-03-07 14:48:11.735278",
13+
"spec_repo_commit": "dbf17f07"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6114,7 +6114,7 @@ components:
61146114
type: string
61156115
type: object
61166116
DowntimeScheduleOneTimeCreateUpdateRequest:
6117-
additionalProperties: {}
6117+
additionalProperties: false
61186118
description: A one-time downtime definition.
61196119
properties:
61206120
end:
@@ -6249,6 +6249,7 @@ components:
62496249
- recurrences
62506250
type: object
62516251
DowntimeScheduleRecurrencesUpdateRequest:
6252+
additionalProperties: false
62526253
description: A recurring downtime schedule definition.
62536254
properties:
62546255
recurrences:

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

-11
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ export class DowntimeScheduleOneTimeCreateUpdateRequest {
2121
*/
2222
"start"?: Date;
2323

24-
/**
25-
* A container for additional, undeclared properties.
26-
* This is a holder for any undeclared properties as specified with
27-
* the 'additionalProperties' keyword in the OAS document.
28-
*/
29-
"additionalProperties"?: { [key: string]: any };
30-
3124
/**
3225
* @ignore
3326
*/
@@ -47,10 +40,6 @@ export class DowntimeScheduleOneTimeCreateUpdateRequest {
4740
type: "Date",
4841
format: "date-time",
4942
},
50-
additionalProperties: {
51-
baseName: "additionalProperties",
52-
type: "any",
53-
},
5443
};
5544

5645
/**

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

-11
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ export class DowntimeScheduleRecurrencesUpdateRequest {
2020
*/
2121
"timezone"?: string;
2222

23-
/**
24-
* A container for additional, undeclared properties.
25-
* This is a holder for any undeclared properties as specified with
26-
* the 'additionalProperties' keyword in the OAS document.
27-
*/
28-
"additionalProperties"?: { [key: string]: any };
29-
3023
/**
3124
* @ignore
3225
*/
@@ -44,10 +37,6 @@ export class DowntimeScheduleRecurrencesUpdateRequest {
4437
baseName: "timezone",
4538
type: "string",
4639
},
47-
additionalProperties: {
48-
baseName: "additionalProperties",
49-
type: "any",
50-
},
5140
};
5241

5342
/**

0 commit comments

Comments
 (0)