Skip to content

Commit f23115a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Increase validation limit on integration type (#3014)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 02eb0e2 commit f23115a

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30473,7 +30473,7 @@ components:
3047330473
8 indicates Jira.'
3047430474
example: 1
3047530475
format: int32
30476-
maximum: 9
30476+
maximum: 100
3047730477
type: integer
3047830478
metadata:
3047930479
$ref: '#/components/schemas/IncidentIntegrationMetadataMetadata'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2026-02-18T16:57:05.121Z
1+
2026-01-07T12:38:45.716Z

cassettes/features/v2/synthetics/Create-a-test-suite-returns-OK-response.yml

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def initialize(attributes = {})
118118
# @!visibility private
119119
def valid?
120120
return false if @integration_type.nil?
121-
return false if @integration_type > 9
121+
return false if @integration_type > 100
122122
return false if @metadata.nil?
123123
return false if !@status.nil? && @status > 5
124124
true
@@ -131,8 +131,8 @@ def integration_type=(integration_type)
131131
if integration_type.nil?
132132
fail ArgumentError, 'invalid value for "integration_type", integration_type cannot be nil.'
133133
end
134-
if integration_type > 9
135-
fail ArgumentError, 'invalid value for "integration_type", must be smaller than or equal to 9.'
134+
if integration_type > 100
135+
fail ArgumentError, 'invalid value for "integration_type", must be smaller than or equal to 100.'
136136
end
137137
@integration_type = integration_type
138138
end

0 commit comments

Comments
 (0)