Skip to content

Commit 4e88636

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Remove OpenAPI enum enforcement of Service Definition v2.2 type field from /api/v2/services/definition (#2107)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 6a393c1 commit 4e88636

File tree

6 files changed

+6
-61
lines changed

6 files changed

+6
-61
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": "2025-03-17 14:53:08.665656",
8-
"spec_repo_commit": "f73f9d61"
7+
"regenerated": "2025-03-17 17:20:20.434189",
8+
"spec_repo_commit": "29344bf2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-17 14:53:08.681430",
13-
"spec_repo_commit": "f73f9d61"
12+
"regenerated": "2025-03-17 17:20:20.450257",
13+
"spec_repo_commit": "29344bf2"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

-16
Original file line numberDiff line numberDiff line change
@@ -29902,24 +29902,8 @@ components:
2990229902
type: object
2990329903
ServiceDefinitionV2Dot2Type:
2990429904
description: The type of service.
29905-
enum:
29906-
- web
29907-
- db
29908-
- cache
29909-
- function
29910-
- browser
29911-
- mobile
29912-
- custom
2991329905
example: web
2991429906
type: string
29915-
x-enum-varnames:
29916-
- WEB
29917-
- DB
29918-
- CACHE
29919-
- FUNCTION
29920-
- BROSWER
29921-
- MOBILE
29922-
- CUSTOM
2992329907
ServiceDefinitionV2Dot2Version:
2992429908
default: v2.2
2992529909
description: Schema version being used.

packages/datadog-api-client-v2/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,6 @@ export { ServiceDefinitionV2Dot2Link } from "./models/ServiceDefinitionV2Dot2Lin
25132513
export { ServiceDefinitionV2Dot2Opsgenie } from "./models/ServiceDefinitionV2Dot2Opsgenie";
25142514
export { ServiceDefinitionV2Dot2OpsgenieRegion } from "./models/ServiceDefinitionV2Dot2OpsgenieRegion";
25152515
export { ServiceDefinitionV2Dot2Pagerduty } from "./models/ServiceDefinitionV2Dot2Pagerduty";
2516-
export { ServiceDefinitionV2Dot2Type } from "./models/ServiceDefinitionV2Dot2Type";
25172516
export { ServiceDefinitionV2Dot2Version } from "./models/ServiceDefinitionV2Dot2Version";
25182517
export { ServiceDefinitionV2Email } from "./models/ServiceDefinitionV2Email";
25192518
export { ServiceDefinitionV2EmailType } from "./models/ServiceDefinitionV2EmailType";

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

-9
Original file line numberDiff line numberDiff line change
@@ -2419,15 +2419,6 @@ const enumsMap: { [key: string]: any[] } = {
24192419
ServiceDefinitionV2Dot1SlackType: ["slack"],
24202420
ServiceDefinitionV2Dot1Version: ["v2.1"],
24212421
ServiceDefinitionV2Dot2OpsgenieRegion: ["US", "EU"],
2422-
ServiceDefinitionV2Dot2Type: [
2423-
"web",
2424-
"db",
2425-
"cache",
2426-
"function",
2427-
"browser",
2428-
"mobile",
2429-
"custom",
2430-
],
24312422
ServiceDefinitionV2Dot2Version: ["v2.2"],
24322423
ServiceDefinitionV2EmailType: ["email"],
24332424
ServiceDefinitionV2LinkType: [

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import { ServiceDefinitionV2Dot2Contact } from "./ServiceDefinitionV2Dot2Contact";
77
import { ServiceDefinitionV2Dot2Integrations } from "./ServiceDefinitionV2Dot2Integrations";
88
import { ServiceDefinitionV2Dot2Link } from "./ServiceDefinitionV2Dot2Link";
9-
import { ServiceDefinitionV2Dot2Type } from "./ServiceDefinitionV2Dot2Type";
109
import { ServiceDefinitionV2Dot2Version } from "./ServiceDefinitionV2Dot2Version";
1110

1211
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -74,7 +73,7 @@ export class ServiceDefinitionV2Dot2 {
7473
/**
7574
* The type of service.
7675
*/
77-
"type"?: ServiceDefinitionV2Dot2Type;
76+
"type"?: string;
7877

7978
/**
8079
* A container for additional, undeclared properties.
@@ -152,7 +151,7 @@ export class ServiceDefinitionV2Dot2 {
152151
},
153152
type: {
154153
baseName: "type",
155-
type: "ServiceDefinitionV2Dot2Type",
154+
type: "string",
156155
},
157156
additionalProperties: {
158157
baseName: "additionalProperties",

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

-28
This file was deleted.

0 commit comments

Comments
 (0)