From 1b0ce95b7e4abfef2e20ef88de9bace304661f1a Mon Sep 17 00:00:00 2001 From: skarimo Date: Thu, 23 Oct 2025 15:34:14 -0400 Subject: [PATCH 1/2] fix no comment --- .generator/src/generator/formatter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.generator/src/generator/formatter.py b/.generator/src/generator/formatter.py index 7170cd9ee33..ed7d8f2af82 100644 --- a/.generator/src/generator/formatter.py +++ b/.generator/src/generator/formatter.py @@ -75,7 +75,9 @@ def is_primitive(schema): def block_comment(comment, prefix="#", first_line=True): - lines = (comment or "").split("\n") + if not comment: + return "" + lines = comment.split("\n") start = "" if first_line else lines[0] + "\n" return (start + "\n".join(f"{prefix} {line}".rstrip() for line in lines[(0 if first_line else 1) :])).rstrip() From 19472e34aa676be31780d8c858e7dd8001be1460 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 23 Oct 2025 21:49:40 +0000 Subject: [PATCH 2/2] Regenerate client from commit 77596ba of spec repo --- .generator/schemas/v1/openapi.yaml | 3 +++ .generator/schemas/v2/openapi.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index c84d61cfe74..30ee61c855d 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -9646,6 +9646,8 @@ components: type: object NotebookGlobalTime: description: Notebook global timeframe. + example: + live_span: 1h oneOf: - $ref: '#/components/schemas/NotebookRelativeTime' - $ref: '#/components/schemas/NotebookAbsoluteTime' @@ -14820,6 +14822,7 @@ components: SyntheticsAssertionTargetValue: description: Value used by the operator in assertions. Can be either a number or string. + example: 0.0 oneOf: - $ref: '#/components/schemas/SyntheticsAssertionTargetValueNumber' - $ref: '#/components/schemas/SyntheticsAssertionTargetValueString' diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 364018c47d5..f5dad840ba9 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -2361,6 +2361,7 @@ components: - $ref: '#/components/schemas/ActionQueryMockedOutputsObject' ActionQueryMockedOutputsEnabled: description: Whether to enable the mocked outputs for testing. + example: false oneOf: - type: boolean - description: If this is a string, it must be a valid JavaScript expression @@ -2450,6 +2451,7 @@ components: type: string ActionQuerySpec: description: The definition of the action query. + example: '' oneOf: - type: string - $ref: '#/components/schemas/ActionQuerySpecObject' @@ -13516,6 +13518,7 @@ components: type: object CustomAttributeValuesUnion: description: Union of supported value for a custom attribute + example: '' oneOf: - $ref: '#/components/schemas/CustomAttributeStringValue' - $ref: '#/components/schemas/CustomAttributeMultiStringValue' @@ -33373,6 +33376,7 @@ components: ObservabilityPipelineOcsfMapperProcessorMappingMapping: description: Defines a single mapping rule for transforming logs into the OCSF schema. + example: CloudTrail Account Change oneOf: - $ref: '#/components/schemas/ObservabilityPipelineOcsfMappingLibrary' ObservabilityPipelineOcsfMapperProcessorType: