Skip to content

Commit 180f914

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix remaining required_examples violations in v2 spec (#1459)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent b3f15ba commit 180f914

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2095,6 +2095,13 @@ components:
20952095
properties:
20962096
data:
20972097
$ref: "#/components/schemas/AWSCloudAuthPersonaMappingsData"
2098+
example:
2099+
- attributes:
2100+
account_identifier: "test@test.com"
2101+
account_uuid: "12bbdc5c-5966-47e0-8733-285f9e44bcf4"
2102+
arn_pattern: "arn:aws:iam::123456789012:user/testuser"
2103+
id: "c5c758c6-18c2-4484-ae3f-46b84128404a"
2104+
type: aws_cloud_auth_config
20982105
required:
20992106
- data
21002107
type: object
@@ -31068,6 +31075,11 @@ components:
3106831075
properties:
3106931076
data:
3107031077
$ref: "#/components/schemas/IncidentHandlesResponseData"
31078+
example:
31079+
- attributes:
31080+
name: "@incident-sev-1"
31081+
id: "12ceee6d-a7c0-4407-bc54-30e54140d7f0"
31082+
type: incident_handles
3107131083
included:
3107231084
$ref: "#/components/schemas/IncidentHandleIncludedResponse"
3107331085
required:
@@ -35460,6 +35472,12 @@ components:
3546035472
properties:
3546135473
data:
3546235474
$ref: "#/components/schemas/JiraAccountsData"
35475+
example:
35476+
- attributes:
35477+
consumer_key: "consumer-key-1"
35478+
instance_url: "https://example.atlassian.net"
35479+
id: "account-1"
35480+
type: jira-account
3546335481
meta:
3546435482
$ref: "#/components/schemas/JiraAccountsMeta"
3546535483
required:
@@ -35781,6 +35799,17 @@ components:
3578135799
properties:
3578235800
data:
3578335801
$ref: "#/components/schemas/JiraIssueTemplatesData"
35802+
example:
35803+
- attributes:
35804+
fields:
35805+
description:
35806+
payload: "Test Description"
35807+
type: "json"
35808+
issue_type_id: "10001"
35809+
name: "Bug Report Template"
35810+
project_id: "PROJECT-1"
35811+
id: "65b3341b-0680-47f9-a6d4-134db45c603e"
35812+
type: jira-issue-template
3578435813
included:
3578535814
$ref: "#/components/schemas/JiraAccountsData"
3578635815
required:
@@ -37850,6 +37879,14 @@ components:
3785037879
properties:
3785137880
data:
3785237881
$ref: "#/components/schemas/ListFindingsData"
37882+
example:
37883+
- attributes:
37884+
evaluation: fail
37885+
resource: "arn:aws:s3:::my-bucket"
37886+
resource_type: aws_s3_bucket
37887+
status: open
37888+
id: "abc-123-xyz"
37889+
type: finding
3785337890
meta:
3785437891
$ref: "#/components/schemas/ListFindingsMeta"
3785537892
required:
@@ -48487,6 +48524,12 @@ components:
4848748524
properties:
4848848525
data:
4848948526
$ref: "#/components/schemas/OutcomesBatchResponseData"
48527+
example:
48528+
- attributes:
48529+
service_name: my-service
48530+
state: pass
48531+
id: "outcome-abc123"
48532+
type: rule-outcome
4849048533
meta:
4849148534
$ref: "#/components/schemas/OutcomesBatchResponseMeta"
4849248535
required:
@@ -62799,6 +62842,13 @@ components:
6279962842
properties:
6280062843
data:
6280162844
$ref: "#/components/schemas/ServiceNowAssignmentGroupsData"
62845+
example:
62846+
- attributes:
62847+
group_name: "IT Operations"
62848+
group_sys_id: "abc123def456"
62849+
instance_id: "65b3341b-0680-47f9-a6d4-134db45c603e"
62850+
id: "65b3341b-0680-47f9-a6d4-134db45c603e"
62851+
type: assignment_groups
6280262852
required:
6280362853
- data
6280462854
type: object
@@ -62906,6 +62956,13 @@ components:
6290662956
properties:
6290762957
data:
6290862958
$ref: "#/components/schemas/ServiceNowBusinessServicesData"
62959+
example:
62960+
- attributes:
62961+
instance_id: "65b3341b-0680-47f9-a6d4-134db45c603e"
62962+
service_name: "IT Support"
62963+
service_sys_id: "abc123def456"
62964+
id: "65b3341b-0680-47f9-a6d4-134db45c603e"
62965+
type: business_services
6290962966
required:
6291062967
- data
6291162968
type: object
@@ -62962,6 +63019,11 @@ components:
6296263019
properties:
6296363020
data:
6296463021
$ref: "#/components/schemas/ServiceNowInstancesData"
63022+
example:
63023+
- attributes:
63024+
instance_name: "my-servicenow-instance"
63025+
id: "65b3341b-0680-47f9-a6d4-134db45c603e"
63026+
type: instance
6296563027
required:
6296663028
- data
6296763029
type: object
@@ -63207,6 +63269,13 @@ components:
6320763269
properties:
6320863270
data:
6320963271
$ref: "#/components/schemas/ServiceNowTemplatesData"
63272+
example:
63273+
- attributes:
63274+
handle_name: "incident-template"
63275+
instance_id: "65b3341b-0680-47f9-a6d4-134db45c603e"
63276+
servicenow_tablename: "incident"
63277+
id: "65b3341b-0680-47f9-a6d4-134db45c603e"
63278+
type: servicenow_templates
6321063279
required:
6321163280
- data
6321263281
type: object
@@ -63333,6 +63402,14 @@ components:
6333363402
properties:
6333463403
data:
6333563404
$ref: "#/components/schemas/ServiceNowUsersData"
63405+
example:
63406+
- attributes:
63407+
email: "john.doe@example.com"
63408+
instance_id: "65b3341b-0680-47f9-a6d4-134db45c603e"
63409+
user_name: "john.doe"
63410+
user_sys_id: "abc123def456"
63411+
id: "65b3341b-0680-47f9-a6d4-134db45c603e"
63412+
type: users
6333663413
required:
6333763414
- data
6333863415
type: object

0 commit comments

Comments
 (0)